100+ results results for 'test repo:altlc/wive-rtnl-ralink-rt305x-routers-firmware-amod' (5194 ms)
108 109 superRegExp = /\bsuper\b/.test(function () { 110 // this test should never be minifier sensistive 196 if ( 197 (noFunctionCheck || !nativeFunctionOPN.test(key)) && 198 isNotASpecialKey(key, allowInit) 233 function isConfigurable(key, publicStatic) { 234 return publicStatic ? !/^[A-Z_]+$/.test(key) : true; 235 } 290 value = descriptor.value; 291 if (typeof value === 'function' && superRegExp.test(value)) { 292 descriptor.value = wrap(inherits, key, value, publicStatic); 355 function wrapGetOrSet(inherits, key, descriptor, gs, publicStatic) { 356 if (hOP.call(descriptor, gs) && superRegExp.test(descriptor[gs])) { 357 descriptor[gs] = wrap(QuestionHelper.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 447 lines
68 * 69 * This is mainly useful for testing purpose. 70 * 419 // handle other OSs with bash/zsh/ksh/csh if available to hide the answer 420 $test = "/usr/bin/env %s -c 'echo OK' 2> /dev/null"; 421 foreach (array('bash', 'zsh', 'ksh', 'csh') as $sh) { 421 foreach (array('bash', 'zsh', 'ksh', 'csh') as $sh) { 422 if ('OK' === rtrim(shell_exec(sprintf($test, $sh)))) { 423 self::$shell = $sh;app_base.rb https://gitlab.com/Renatafsouza/EP3OO | Ruby | 365 lines
67 68 class_option :skip_test_unit, type: :boolean, aliases: '-T', default: false, 69 desc: 'Skip Test::Unit files' 167 def include_all_railties? 168 !options[:skip_active_record] && !options[:skip_test_unit] && !options[:skip_sprockets] 169 end 321 # We use backticks and #print here instead of vanilla #system because it 322 # is easier to silence stdout in the existing test suite this way. The 323 # end-user gets the bundler commands called anyway, so no big deal.moderator.rst https://gitlab.com/noc0lour/mailman | ReStructuredText | 450 lines
14 >>> mlist.preferred_language = 'en' 15 >>> mlist.display_name = 'A Test List' 16 >>> mlist.admin_immed_notify = False 107 108 >>> from mailman.testing.helpers import get_queue_messages 109 >>> messages = get_queue_messages('virgin') 114 ... 115 Subject: Request to mailing list "A Test List" rejected 116 From: ant-bounces@example.com 269 ... 270 Subject: Request to mailing list "A Test List" rejected 271 From: ant-bounces@example.com 330 ... 331 Subject: New subscription request to A Test List from gwen@example.com 332 From: ant-owner@example.com6.Followthrough.rst https://github.com/kvaneesh/linux.git | ReStructuredText | 240 lines
171Ancora più importante: l'inclusione nel ramo principale mette il vostro 172codice nelle mani di un gruppo di *tester* molto più esteso. Anche se avete 173contribuito ad un driver per un hardware che non è ancora disponibile, sarete 174sorpresi da quante persone inseriranno il vostro codice nei loro kernel. 175E, ovviamente, dove ci sono *tester*, ci saranno anche dei rapporti su 176eventuali bachi.self-protection.rst https://github.com/kvaneesh/linux.git | ReStructuredText | 317 lines
24are effective, on by default, require no opt-in by developers, have no 25performance impact, do not impede kernel debugging, and have tests. It 26is uncommon that all these goals can be met, but it is worth explicitlymtk_mipi_tx.c https://github.com/gby/linux.git | C | 491 lines
49#define RG_DSI_LNT_IMP_CAL_EN BIT(2) 50#define RG_DSI_LNT_TESTMODE_EN BIT(3) 51#define RG_DSI_LNT_IMP_CAL_CODE (0xf << 4)TestJobCounters.java https://github.com/RS1999ent/hadoop-mapreduce.git | Java | 335 lines
99 private static Path OUT_DIR = null; 100 private static Path testdir = null; 101 106 new Path(System.getProperty("test.build.data", "/tmp")); 107 testdir = new Path(TEST_ROOT_DIR, "spilledRecords.countertest"); 108 IN_DIR = new Path(testdir, "in"); 111 FileSystem fs = FileSystem.getLocal(conf); 112 testdir = new Path(TEST_ROOT_DIR, "spilledRecords.countertest"); 113 if (fs.exists(testdir) && !fs.delete(testdir, true)) { 131 if (fs.exists(testdir)) { 132 fs.delete(testdir, true); 133 } 169 170 @Test 171 public void testOldCounterA() throws Exception {iforce-main.c https://github.com/Dabary/linux_gt-i9000.git | C | 488 lines
135 136 if (__test_and_set_bit(FF_CORE_IS_USED, core_effect->flags)) { 137 /* Check the effect is not already being updated */ 137 /* Check the effect is not already being updated */ 138 if (test_bit(FF_CORE_UPDATE, core_effect->flags)) 139 return -EAGAIN; 182 183 if (test_bit(FF_MOD1_IS_USED, core_effect->flags)) 184 err = release_resource(&core_effect->mod1_chunk); 185 186 if (!err && test_bit(FF_MOD2_IS_USED, core_effect->flags)) 187 err = release_resource(&core_effect->mod2_chunk); 208 209 if (test_bit(EV_FF, dev->evbit)) { 210 /* Enable force feedback */dir.c https://bitbucket.org/Don2x/mod-kernel-m7-sources.git | C | 561 lines
52 EXT4_FEATURE_COMPAT_DIR_INDEX) && 53 ((ext4_test_inode_flag(inode, EXT4_INODE_INDEX)) || 54 ((inode->i_size >> sb->s_blocksize_bits) == 1)))isdnl3.c https://github.com/galaxyishere/samsung-kernel-latona.git | C | 596 lines
289 else if (!(p->st->l3.proc = np->next) && 290 !test_bit(FLG_PTP, &p->st->l2.flag)) { 291 if (p->debug) 494 495 if (test_bit(FLG_L2BLOCK, &st->l2.flag)) { 496 if (st->l3.debug)CategoryTableXYDataset.java https://github.com/ph4r05/WirelessSensorNodeGeolocation.git | Java | 403 lines
362 /** 363 * Tests this dataset for equality with an arbitrary object. 364 *ipmi_kcs_sm.c https://github.com/gby/linux.git | C | 551 lines
530 * but that's what you get from reading a bogus address, so we 531 * test that first. 532 */catalog.c https://github.com/gby/linux.git | C | 524 lines
114 folder->type = cpu_to_be16(HFSPLUS_FOLDER); 115 if (test_bit(HFSPLUS_SB_HFSX, &sbi->flags)) 116 folder->flags |= cpu_to_be16(HFSPLUS_HAS_FOLDER_COUNT); 225 226 if (test_bit(HFSPLUS_SB_HFSX, &sbi->flags)) { 227 /* 238 239 if (test_bit(HFSPLUS_SB_HFSX, &sbi->flags)) { 240 /*zero_copy_stream_impl_lite.h https://github.com/dumganhar/cocos2d-x.git | C Header | 340 lines
66 // first call to Next() returns the entire array. block_size is mainly 67 // useful for testing; in production you would probably never want to set 68 // it. 100 // first call to Next() returns the entire array. block_size is mainly 101 // useful for testing; in production you would probably never want to set 102 // it.intel.c https://github.com/galaxyishere/samsung-kernel-latona.git | C | 530 lines
250 switch (c->x86) { 251 case 4: /* 486: untested */ 252 break; 252 break; 253 case 5: /* Old Pentia: untested */ 254 break;active_model_basics.md https://gitlab.com/mpivaa/rails | Markdown | 556 lines
465 466### Lint Tests 467 467 468`ActiveModel::Lint::Tests` allow you to test whether an object is compliant with 469the Active Model API. 479 480* test/models/person_test.rb 481 482 ```ruby 483 require 'test_helper' 484 484 485 class PersonTest < ActiveSupport::TestCase 486 include ActiveModel::Lint::Testsast-value-factory.cc https://gitlab.com/AnneSmile/v8 | C++ | 416 lines
39// For using StringToArrayIndex. 40class OneByteStringStream { 41 public: 41 public: 42 explicit OneByteStringStream(Vector<const byte> lb) : 43 literal_bytes_(lb), pos_(0) {} 114 } else { 115 OneByteStringStream stream(literal_bytes_); 116 CHECK(StringToArrayIndex(&stream, index)); 222 223AstRawString* AstValueFactory::GetOneByteStringInternal( 224 Vector<const uint8_t> literal) { 230 231AstRawString* AstValueFactory::GetTwoByteStringInternal( 232 Vector<const uint16_t> literal) {ecies_test.go https://gitlab.com/akomba/ether-bot-wallet | Go | 543 lines
51// Ensure the KDF generates appropriately sized keys. 52func TestKDF(t *testing.T) { 53 msg := []byte("Hello, world") 113// Validate the ECDH component. 114func TestSharedKey(t *testing.T) { 115 prv1, err := GenerateKey(rand.Reader, DefaultCurve, nil) 147// requested. 148func TestTooBigSharedKey(t *testing.T) { 149 prv1, err := GenerateKey(rand.Reader, DefaultCurve, nil) 202// the resulting key is properly parsed back into a public key. 203func TestMarshalPrivate(t *testing.T) { 204 prv, err := GenerateKey(rand.Reader, DefaultCurve, nil) 465 466func testParamSelection(t *testing.T, c testCase) { 467 params := ParamsFromCurve(c.Curve)test_worker_control.py https://github.com/jsaxon-cars/celery.git | Python | 374 lines
1import socket 2from celery.tests.utils import unittest 3 56 57class test_ControlPanel(unittest.TestCase): 58 123 124 def test_active_queues(self): 125 import kombu 212 213 def test_revoked(self): 214 state.revoked.clear() 233 234 def test_dump_reserved(self): 235 consumer = Consumer()diffusion2.py https://gitlab.com/pooja043/Globus_Docker | Python | 505 lines
66 loglike or characteristic function ? 67* tests ? check for possible index errors (random indices), graphs look ok 68* adjust notation, variable names, more consistent, more pythonic 72 73random bug (showed up only once, need fuzz-testing to replicate) 74 File "...\diffusion2.py", line 375, in <module>wrapper.c https://bitbucket.org/cyanogenmod/android_kernel_htc_endeavoru.git | C | 492 lines
353 354 /* Test FCS and signal success if the frame is good */ 355 if (rx_buff->fcs == GOOD_FCS) {round2_base.wsdl https://gitlab.com/envieidoc/advancedtomato2 | Web Services Description Language | 332 lines
1<?xml version="1.0"?> 2<definitions name="InteropTest" 3 xmlns:xsd="http://www.w3.org/2001/XMLSchema" 136 137 <portType name="InteropTestPortType"> 138 <operation name="echoString"> 195 196 <binding name="InteropTestBinding" type="tns:InteropTestPortType"> 197 <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> 326 <service name="InteropTest"> 327 <port name="InteropTestPort" binding="tns:InteropTestBinding"> 328 <soap:address location="round2_base.inc"/>pagination_spec.js https://gitlab.com/gpestana/Ghost | JavaScript | 371 lines
7 8// Thing we're testing 9 pagination = rewire('../../../server/models/plugins/pagination');selectors.rst https://github.com/noplay/scrapy.git | ReStructuredText | 380 lines
68To explain how to use the selectors we'll use the `Scrapy shell` (which 69provides interactive testing) and an example page located in the Scrapy 70documentation server:README.md https://gitlab.com/jeaster12/fabby | Markdown | 434 lines
397 398## Tests 399 401 402Install NodeJS version 0.8.0 or greater, then run `node test/run-tests.js`. 403 403 404To add new tests, create a new file named `test/test-<your new test name>.js` 405and export your test functions with names that start with "test", for example 412 413The `util` argument is the test utility module located at `test/source-map/util`. 414 428(The reason for the restricted set of test functions is because we need the 429tests to run inside Firefox's test suite as well and so the assert module is 430shimmed in that environment. See `build/assert-shim.js`.)bmp-280-sensor.c https://gitlab.com/rdeterre/contiki | C | 392 lines
84/*---------------------------------------------------------------------------*/ 85/* Test values */ 86#define VAL_RESET_EXECUTE 0xB6 86#define VAL_RESET_EXECUTE 0xB6 87#define VAL_CTRL_MEAS_TEST 0x55 88/*---------------------------------------------------------------------------*/basic-strict-mode.js https://gitlab.com/AnneSmile/v8 | JavaScript | 233 lines
23 24description("Test behaviour of strict mode"); 25 25 26var globalThisTest; 27function testThis() { 30} 31function testThisDotAccess() { 32 "use strict"; 34} 35function testThisBracketAccess(prop) { 36 "use strict"; 38} 39function testGlobalAccess() { 40 return testThis();010_page_text.sql https://gitlab.com/Lbniese/TrinityCore_434 | SQL | 126 lines
124UPDATE `page_text` SET `text`='This petrified talon was found off of the southern coasts of Stranglethorn. Ecologists believe this talon to be that of an ancient sun roc. Though the creatures feature prominently in primitive tauren mythological cycles, the existence of this talon suggests the creatures truly existed at some point.', `WDBVerified`=15595 WHERE `entry`=1752; -- 1752 125UPDATE `page_text` SET `text`='Found in the sweltering wastes of the Tanaris desert, this peculiar egg remains a mystery to modern ecologists. Dating tests suggest the egg could be up to a thousand years old. Though certain elements denote insectoid structure, its true origins cannot be discerned. The species that lays such distinct eggs still remains to be discovered.', `WDBVerified`=15595 WHERE `entry`=1760; -- 1760 126UPDATE `page_text` SET `text`='The remains of the gargantuan red dragon were found in the Wetlands shortly after the Battle of Grim Batol. Tyrannistrasz was rumored to have been the elder consort of the Dragonqueen, Alexstrasza.', `WDBVerified`=15595 WHERE `entry`=1751; -- 1751JMeterEngine.html https://gitlab.com/shashiprahlad/GameofLife | HTML | 365 lines
134 HREF="../../../../org/apache/jorphan/collections/HashTree.html" 135 title="class in org.apache.jorphan.collections">HashTree</A> testPlan)</CODE> 136 158 <CODE> void</CODE></FONT></TD> 159 <TD><CODE><B><A HREF="../../../../org/apache/jmeter/engine/JMeterEngine.html#runTest()">runTest</A></B>()</CODE> 160 178 <TD><CODE><B><A 179 HREF="../../../../org/apache/jmeter/engine/JMeterEngine.html#stopTest()">stopTest</A></B>()</CODE> 180 209public void <B>configure</B>(<A HREF="../../../../org/apache/jorphan/collections/HashTree.html" 210 title="class in org.apache.jorphan.collections">HashTree</A> testPlan)</PRE> 211<DL> 218 219<A NAME="runTest()"><!-- --></A> 220FBSDKInternalUtility.h https://gitlab.com/maheshm255/B4U | C Header | 336 lines
138/*! 139 @abstract Tests whether the supplied URL is a valid URL for opening in the browser. 140 @param URL The URL to test. 145/*! 146 @abstract Tests whether the supplied bundle identifier references a Facebook app. 147 @param bundleIdentifier The bundle identifier to test. 152/*! 153 @abstract Tests whether the operating system is at least the specified version. 154 @param version The version to test against. 159/*! 160 @abstract Tests whether the supplied bundle identifier references the Safari app. 161 @param bundleIdentifier The bundle identifier to test. 166/*! 167 @abstract Tests whether the UIKit version that the current app was linked to is at least the specified version. 168 @param version The version to test against.EscalationHandlerTest.java https://bitbucket.org/pymma/openesb-components.git | Java | 337 lines
63 */ 64public class EscalationHandlerTest extends TestCase { 65 65 66 public EscalationHandlerTest(String testName) { 67 super(testName); 85 //load task definition 86 String wfFileName = "/com/sun/jbi/engine/workflow/clientapi/testMessages/purchaseOrder/ApprovePurchaseEscalationDeadlineTest.wf"; 87 Element root = Util.loadElement(wfFileName); 286 //load task definition 287 String wfFileName = "/com/sun/jbi/engine/workflow/clientapi/testMessages/purchaseOrder/ApprovePurchaseEscalationDeadlineNegativeTest.wf"; 288 Task task = Util.loadTask(wfFileName); 315 //load task definition 316 String wfFileName = "/com/sun/jbi/engine/workflow/clientapi/testMessages/purchaseOrder/ApprovePurchaseEscalationDurationNegativeTest.wf"; 317 Task task = Util.loadTask(wfFileName);Delim.java https://bitbucket.org/pymma/openesb-components.git | Java | 407 lines
332 /** 333 * Tests whether delimiter is embedded. 334 * Convenience functions for testing mSlotIndex. 342 /** 343 * Tests whether leading delimiters should be skipped. 344 * 352 /** 353 * Tests whether should collapse multiple consecutive 354 * delimiters into one. 363 /** 364 * Tests if the delimiter has beginning bytes. 365 * 373 /** 374 * Tests if the delimiter has ending bytes. 375 *FaultTolerantExceptionClassesTests.java https://github.com/ftaiolivista/spring-batch.git | Java | 332 lines
10import org.junit.Before; 11import org.junit.Test; 12import org.junit.runner.RunWith; 24import org.springframework.context.ApplicationContextAware; 25import org.springframework.test.context.ContextConfiguration; 26import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 34@RunWith(SpringJUnit4ClassRunner.class) 35public class FaultTolerantExceptionClassesTests implements ApplicationContextAware { 36 63 64 @Test 65 public void testNonSkippable() throws Exception { 72 73 @Test 74 public void testNonSkippableChecked() throws Exception {LineManagerTests.cs https://github.com/lumimies/ILSpy.git | C# | 531 lines
9{ 10 [TestFixture] 11 public class LineManagerTests 20 21 [Test] 22 public void CheckEmptyDocument() 28 29 [Test] 30 public void CheckClearingDocument() 39 40 [Test] 41 public void CheckGetLineInEmptyDocument() 51 52 [Test] 53 public void CheckLineSegmentInEmptyDocument()mips16-hilo-n32.d https://bitbucket.org/pizzafactory/blackfin-toolchain.git | D | 338 lines
1#name: R_MIPS16_HI16 and R_MIPS16_LO16 relocs n32 2#source: ../../../gas/testsuite/gas/mips/mips16-hilo.s 3#source: mips16-hilo.sTemplateTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 382 lines
6 7namespace Magento\Newsletter\Test\Unit\Model; 8 13 */ 14class TemplateTest extends \PHPUnit_Framework_TestCase 15{ 167 /** 168 * Return the model under test with additional methods mocked. 169 * 197 198 public function testGetProcessedTemplateSubject() 199 { 234 * This test is nearly identical to the 235 * \Magento\Email\Test\Unit\Model\AbstractTemplateTest::testGetProcessedTemplate test, except this test also tests 236 * to ensure that if a "subscriber" variable is passed to method, the store ID from that object will be used forhi8435.c https://gitlab.com/openbar/rpi-linux | C | 534 lines
45/* CTRL register bits */ 46#define HI8435_CTRL_TEST 0x01 47#define HI8435_CTRL_SRST 0x02odm_RTL8188E.c https://gitlab.com/openbar/rpi-linux | C | 370 lines
87 /* antenna mapping table */ 88 if (!dm_odm->bIsMPChip) { /* testchip */ 89 phy_set_bb_reg(adapter, ODM_REG_RX_DEFUALT_A_11N, 136 if (AntCombination == 2) { 137 if (!dm_odm->bIsMPChip) { /* testchip */ 138 phy_set_bb_reg(adapter, 0x858, BIT(10) | BIT(9) | BIT(8), 1); 144 } else if (AntCombination == 7) { 145 if (!dm_odm->bIsMPChip) { /* testchip */ 146 phy_set_bb_reg(adapter, 0x858, BIT(10) | BIT(9) | BIT(8), 0);rtc-mxc.c https://github.com/tklauser/linux-nios2.git | C | 517 lines
70#define RTC_DAYALARM 0x24 /* 32bit rtc day alarm reg */ 71#define RTC_TEST1 0x28 /* 32bit rtc test reg 1 */ 72#define RTC_TEST2 0x2C /* 32bit rtc test reg 2 */ 72#define RTC_TEST2 0x2C /* 32bit rtc test reg 2 */ 73#define RTC_TEST3 0x30 /* 32bit rtc test reg 3 */ 74status_checks_spec.rb https://gitlab.com/realsatomic/gitlab | Ruby | 408 lines
216 let(:params) do 217 { name: 'New rule', external_url: 'https://gitlab.com/test/example.json', protected_branch_ids: protected_branch.id } 218 end 240 expect(json_response['name']).to eq('New rule') 241 expect(json_response['external_url']).to eq('https://gitlab.com/test/example.json') 242 expect(json_response['protected_branches'].size).to eq(1) 340 let(:params) do 341 { name: 'New rule', external_url: 'https://gitlab.com/test/example.json', protected_branch_ids: protected_branch.id } 342 end 358 let(:params) do 359 { name: 'New rule', external_url: 'https://gitlab.com/test/example.json', protected_branch_ids: protected_branch.id } 360 end 380 expect(json_response['name']).to eq('New rule') 381 expect(json_response['external_url']).to eq('https://gitlab.com/test/example.json') 382 expect(json_response['protected_branches'].size).to eq(1)pdfx.html https://bitbucket.org/ianmayo/debrief.git | HTML | 384 lines
266<p> 267 Tests have been performed against Adobe Acrobat 7.0.7 (Preflight function). 268 Note that there are bugs in Adobe Acrobat which cause false alarms if bothusers_controller_test.rb https://bitbucket.org/sharjeelaslam/redmine-tivilon-dev.git | Ruby | 425 lines
19 20class UsersControllerTest < ActionController::TestCase 21 include Redmine::I18n 37 38 def test_index 39 get :index 46 47 def test_index_with_status_filter 48 get :index, :status => 3 158 159 def test_create 160 Setting.bcc_recipients = '1' 406 407 def test_destroy_membership 408 assert_difference 'Member.count', -1 domenu.py https://github.com/Doap/django-cms.git | Python | 348 lines
58 """ 59 PagePermission tests 60 """StatsValuesFactory.html https://bitbucket.org/zeroeth/punkscan.git | HTML | 272 lines
136<CODE>static <A HREF="../../../../../org/apache/solr/handler/component/StatsValues.html" title="interface in org.apache.solr.handler.component">StatsValues</A></CODE></FONT></TD> 137<TD><CODE><B><A HREF="../../../../../org/apache/solr/handler/component/StatsValuesFactory.html#createStatsValues(org.apache.solr.schema.FieldType)">createStatsValues</A></B>(<A HREF="../../../../../org/apache/solr/schema/FieldType.html" title="class in org.apache.solr.schema">FieldType</A> fieldType)</CODE> 138 181 182<A NAME="createStatsValues(org.apache.solr.schema.FieldType)"><!-- --></A><H3> 183createStatsValues</H3> 184<PRE> 185public static <A HREF="../../../../../org/apache/solr/handler/component/StatsValues.html" title="interface in org.apache.solr.handler.component">StatsValues</A> <B>createStatsValues</B>(<A HREF="../../../../../org/apache/solr/schema/FieldType.html" title="class in org.apache.solr.schema">FieldType</A> fieldType)</PRE> 186<DL>StandardRenderer.js https://gitlab.com/KongMono/GuitarChord | JavaScript | 507 lines
197 // If the response is the whole package info, the package meta 198 // is under the "latest" property 199 if (typeof data === 'object' && data.versions) { 199 if (typeof data === 'object' && data.versions) { 200 pkgMeta = data.latest; 201 includeVersions = true; 473 474 if (node.update.latest !== node.update.target) { 475 update += (update ? ', ' : ''); 475 update += (update ? ', ' : ''); 476 update += 'latest is ' + node.update.latest; 477 }pl080.c https://gitlab.com/storedmirrors/qemu | C | 449 lines
127again: 128 /* Test if thiws channel has any pending DMA requests. */ 129 if ((ch->conf & (PL080_CCONF_H | PL080_CCONF_E))actions_spec.js https://gitlab.com/realsatomic/gitlab | JavaScript | 552 lines
2import * as actions from 'ee/vue_shared/dashboards/store/actions'; 3import createStore from 'ee/vue_shared/dashboards/store/index'; 4import * as types from 'ee/vue_shared/dashboards/store/mutation_types'; 5import { mockHeaders, mockText, mockProjectData } from 'ee_jest/vue_shared/dashboards/mock_data'; 6import testAction from 'helpers/vuex_action_helper'; 7import createFlash from '~/flash'; 23 beforeEach(() => { 24 store = createStore(); 25 mockAxios = new MockAdapter(axios); 40 41 return testAction( 42 actions.addProjectsToDashboard, 57 58 return testAction( 59 actions.addProjectsToDashboard,truncate.c https://github.com/crystalfontz/linux-2.6.git | C | 474 lines
72{ 73 if (TestClearPageDirty(page)) { 74 struct address_space *mapping = page->mapping;relative.js https://github.com/Digaku/closure-library.git | JavaScript | 430 lines
252 */ 253goog.date.relative.getDateString = function( 254 date, opt_shortTimeMsg, opt_fullDateMsg) { 254 date, opt_shortTimeMsg, opt_fullDateMsg) { 255 return goog.date.relative.getDateString_( 256 date, goog.date.relative.format, opt_shortTimeMsg, opt_fullDateMsg); 261 * Formats a date, adding the relative date in parenthesis. Functions the same 262 * as #getDateString but ensures that the date is always seen to be in the past. 263 * If the date is in the future, it will be shown as 0 minutes ago. 265 * This is provided for compatibility with users of the previous incarnation of 266 * the above {@see #getDateString} method who relied on it protecting against 267 * future dates. 275 */ 276goog.date.relative.getPastDateString = function( 277 date, opt_shortTimeMsg, opt_fullDateMsg) {date_based.py https://gitlab.com/uobis/Django-School | Python | 352 lines
9 10def archive_index(request, queryset, date_field, num_latest=15, 11 template_name=None, template_loader=loader, 12 extra_context=None, allow_empty=True, context_processors=None, 13 mimetype=None, allow_future=False, template_object_name='latest'): 14 """ 20 List of years 21 latest 22 Latest N (defaults to 15) objects by date 32 if date_list and num_latest: 33 latest = queryset.order_by('-'+date_field)[:num_latest] 34 else: 34 else: 35 latest = None 36test_perf.cpp https://gitlab.com/cdeclare/intcrypt | C++ | 545 lines
1/* Boost.MultiIndex performance test. 2 * 153/* list_wrapper and multiset_wrapper adapt std::lists and std::multisets 154 * to make them conform to a set-like insert interface which test 155 * routines do assume. 230 231/* mono_container runs the tested routine on multi_index and manual 232 * simulations comprised of one standard container. 340 341template <typename IndexedTest,typename ManualTest> 342void run_tests(const char* title) 348 double indexed_t=measure(IndexedTest(n)); 349 double manual_t=measure(ManualTest(n)); 350 cout<<" 10^"<<i+3<<" elmts: " 358 359 size_t indexed_t_node_size=IndexedTest::multi_index_node_size(); 360 size_t manual_t_node_size=ManualTest::node_size();unique_ptr_meta_utils.hpp https://gitlab.com/cdeclare/intcrypt | C++ Header | 591 lines
382 struct two { char c[2]; }; 383 template <class U> static two test(...); 384 template <class U> static char test(typename U::pointer* = 0); 384 template <class U> static char test(typename U::pointer* = 0); 385 static const bool value = sizeof(test<T>(0)) == 1; 386}; 449#if defined(_MSC_EXTENSIONS) && !defined(__BORLAND__) && !defined(_WIN64) && !defined(_M_ARM) && !defined(UNDER_CE) 450#define BOOST_MOVE_TT_TEST_MSC_FUNC_SIGS 451#endif 457// avoid duplicate definitions of is_unary_function_impl 458#ifndef BOOST_MOVE_TT_TEST_MSC_FUNC_SIGS 459 467 468#else // BOOST_MOVE_TT_TEST_MSC_FUNC_SIGS 469linux-aio.c https://gitlab.com/storedmirrors/qemu | C | 486 lines
254 255 if (event_notifier_test_and_clear(&s->e)) { 256 qemu_laio_process_completions_and_submit(s);pckbd.c https://github.com/coriolis/vmxray.git | C | 461 lines
38#define KBD_CCMD_MOUSE_ENABLE 0xA8 /* Enable mouse interface */ 39#define KBD_CCMD_TEST_MOUSE 0xA9 /* Mouse interface test */ 40#define KBD_CCMD_SELF_TEST 0xAA /* Controller self test */ 40#define KBD_CCMD_SELF_TEST 0xAA /* Controller self test */ 41#define KBD_CCMD_KBD_TEST 0xAB /* Keyboard interface test */ 42#define KBD_CCMD_KBD_DISABLE 0xAD /* Keyboard interface disable */ 72#define KBD_STAT_IBF 0x02 /* Keyboard input buffer full */ 73#define KBD_STAT_SELFTEST 0x04 /* Self test successful */ 74#define KBD_STAT_CMD 0x08 /* Last write was a command write (0=data) */ 222 break; 223 case KBD_CCMD_TEST_MOUSE: 224 kbd_queue(s, 0x00, 0); 225 break; 226 case KBD_CCMD_SELF_TEST: 227 s->status |= KBD_STAT_SELFTEST;file.php https://github.com/Lurttinen/customisation-db.git | PHP | 509 lines
209 // Maybe we should write only to the archive. 210 // Test this only, when the archive is new. 211MaxCPlanar_Master.h https://gitlab.com/cjeight/tortoisegit | C Header | 342 lines
318 double m_deltaCount; 319 double nextConnectCoeff() { return (m_checkCPlanar ? -1 : -m_epsilon) + m_deltaCount--*m_delta; } // TODO-TESTING 320 EdgeVar* createVariable(ListIterator<nodePair>& it) {levels-test.js https://gitlab.com/alekhya484/example-project | JavaScript | 464 lines
6function assertThat(level) { 7 function assertForEach(assertion, test, otherLevels) { 8 otherLevels.forEach(function(other) { 8 otherLevels.forEach(function(other) { 9 assertion.call(assert, test.call(level, other)); 10 });ChangeApi.java https://gitlab.com/chenfengxu/gerrit | Java | 401 lines
266 267 /** Rebase change edit on latest patch set. */ 268 public static void rebaseEdit(DefaultSqlParserTest.java https://gitlab.com/hansol6566/pinpoint | Java | 369 lines
139 140 assertEqual("test123", "test123", ""); 141 assertEqual("test_123", "test_123", ""); 163 assertEqual("//123", "//123", ""); 164 assertEqual("--test", "--test"); 165 assertEqual("//test", "//test"); 165 assertEqual("//test", "//test"); 166 assertEqual("--test\ntest", "--test\ntest", ""); 167 assertEqual("--test\t\n", "--test\t\n", ""); 167 assertEqual("--test\t\n", "--test\t\n", ""); 168 assertEqual("--test\n123 test", "--test\n0# test", "123"); 169 } 206 public void commentAndSymbolCombine() { 207 assertEqual("/* 'test' */", "/* 'test' */", ""); 208 assertEqual("/* 'test'' */", "/* 'test'' */", "");dc.h https://bitbucket.org/ayysir/asdk-grouper.git | C Header | 578 lines
70 TEGRA_DSI_VIDEO_BURST_MODE_FAST_SPEED = 5, 71 TEGRA_DSI_VIDEO_BURST_MODE_FASTEST_SPEED = 6, 72};emacs.js https://gitlab.com/hatemdigify/digifyblog | JavaScript | 405 lines
62 var no = pos.line, line = cm.getLine(no); 63 var sawText = /\S/.test(dir < 0 ? line.slice(0, pos.ch) : line.slice(pos.ch)); 64 var fst = cm.firstLine(), lst = cm.lastLine(); 69 line = cm.getLine(no); 70 var hasText = /\S/.test(line); 71 if (hasText) sawText = true; 83 text = cm.getLine(line + dir); 84 if (!/\S/.test(text)) return Pos(line, ch); 85 line += dir; 88 } 89 if (sawWord && /[!?.]/.test(next)) return Pos(line, ch + (dir > 0 ? 1 : 0)); 90 if (!sawWord) sawWord = /\w/.test(next); 103 var after = Pos(pos.line, dir < 0 ? token.start : token.end); 104 if (first && dir > 0 && token.end == pos.ch || !/\w/.test(token.string)) { 105 var newPos = cm.findPosH(after, dir, "char");pmu.c https://bitbucket.org/killerpenguinassassins/open_distrib_devel.git | C | 533 lines
55 struct kvm_pmu *pmu = &pmc->vcpu->arch.pmu; 56 return test_bit(pmc->idx, (unsigned long *)&pmu->global_ctrl); 57} 117 struct kvm_pmu *pmu = &pmc->vcpu->arch.pmu; 118 if (!test_and_set_bit(pmc->idx, (unsigned long *)&pmu->reprogram_pmi)) { 119 kvm_perf_overflow(perf_event, data, regs);infinispan-cachestore-remote-config-5.2.xsd https://bitbucket.org/cprenzberg/infinispan.git | XML Schema | 271 lines
24 25 <xs:element name="remoteStore"> 26 <xs:complexType> 236 </xs:attribute> 237 <xs:attribute name="testWhileIdle" type="xs:boolean" default="true"> 238 <xs:annotation>UrlTest1.cpp https://github.com/koying/xbmc.git | C++ | 278 lines
90static void 91TestParse(ParseTestVector* vector, int test_index) 92{ 121 if (url.HasQuery() != (vector->expected_query != NULL)) { 122 fprintf(stderr, "TEST %02d: expected a query, did not get one\n", test_index); 123 return; 126 if (url.GetQuery() != vector->expected_query) { 127 fprintf(stderr, "TEST %02d: expected GetQuery() to return %s, got %s\n", test_index, vector->expected_query, url.GetQuery().GetChars()); 128 return; 143 if (url_string != vector->expected_string) { 144 fprintf(stderr, "TEST %02d: expected ToString() to return %s, got %s\n", test_index, vector->expected_string, url_string.GetChars()); 145 return; 148 if (url2.ToString() != url_string) { 149 fprintf(stderr, "TEST %02d: url ToString() does not parse to same url\n", test_index); 150 return;namei_msdos.c https://github.com/mstsirkin/linux.git | C | 693 lines
33 if (opts->dotsOK) { 34 /* Get rid of dot - test for it elsewhere */ 35 name++;xattr.c https://github.com/mstsirkin/linux.git | C | 1605 lines
269 270 if (!ext4_test_inode_state(inode, EXT4_STATE_XATTR)) 271 return -ENODATA; 397 398 if (!ext4_test_inode_state(inode, EXT4_STATE_XATTR)) 399 return 0;resize.c https://github.com/mstsirkin/linux.git | C | 1083 lines
35 36 if (test_and_set_bit_lock(EXT4_RESIZING, &EXT4_SB(sb)->s_resize_flags)) 37 ret = -EBUSY; 70 71 if (test_opt(sb, DEBUG)) 72 printk(KERN_DEBUG "EXT4-fs: adding %s group %u: %u blocks " 410 411 if (test_opt(sb, DEBUG)) 412 printk(KERN_DEBUGnamei.c https://github.com/mstsirkin/linux.git | C | 1824 lines
73#ifndef assert 74#define assert(test) J_ASSERT(test) 75#endifmigrate.c https://github.com/mstsirkin/linux.git | C | 634 lines
368 */ 369 if (!ext4_test_inode_state(inode, EXT4_STATE_EXT_MIGRATE)) { 370 retval = -EAGAIN; 477 EXT4_FEATURE_INCOMPAT_EXTENTS) || 478 (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS))) 479 return -EINVAL;mballoc.c https://github.com/mstsirkin/linux.git | C | 1776 lines
30 * MUSTDO: 31 * - test ext4_ext_search_left() and ext4_ext_search_right() 32 * - search for metadata in few groups 374 375static inline int mb_test_bit(int bit, void *addr) 376{ 377 /* 378 * ext4_test_bit on architecture like powerpc 379 * needs unsigned long aligned addressinode.c https://github.com/mstsirkin/linux.git | C | 1733 lines
77/* 78 * Test whether an inode is a fast symlink. 79 */ 253{ 254 if (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)) 255 return ext4_ext_calc_metadata_amount(inode, lblock); 436 down_read((&EXT4_I(inode)->i_data_sem)); 437 if (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)) { 438 retval = ext4_ext_map_blocks(handle, inode, map, 0); 495 */ 496 if (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)) { 497 retval = ext4_ext_map_blocks(handle, inode, map, flags);extents.c https://github.com/mstsirkin/linux.git | C | 1974 lines
183 if (!check) { 184#ifdef AGGRESSIVE_TEST 185 if (size > 6) 198 if (!check) { 199#ifdef AGGRESSIVE_TEST 200 if (size > 5) 214 if (!check) { 215#ifdef AGGRESSIVE_TEST 216 if (size > 3) 230 if (!check) { 231#ifdef AGGRESSIVE_TEST 232 if (size > 4)ext4.h https://github.com/mstsirkin/linux.git | C Header | 1376 lines
413 414#define TEST_FLAG_VALUE(FLAG) (EXT4_##FLAG##_FL == (1 << EXT4_INODE_##FLAG)) 415#define CHECK_FLAG_VALUE(FLAG) if (!TEST_FLAG_VALUE(FLAG)) { \ 420 * Since it's pretty easy to mix up bit numbers and hex values, and we 421 * can't do a compile-time test for ENUM values, we use a run-time 422 * test to make sure that EXT4_XXX_FL is consistent with respect to 425 * But it's important that these values are the same, since we are 426 * using EXT4_INODE_XXX to test for the flag values, but EXT4_XX_FL 427 * must be consistent with the values of FS_XXX_FL defined inballoc.c https://github.com/mstsirkin/linux.git | C | 670 lines
258 offset = bitmap_blk - group_first_block; 259 if (!ext4_test_bit(offset, bh->b_data)) 260 /* bad block bitmap */ 265 offset = bitmap_blk - group_first_block; 266 if (!ext4_test_bit(offset, bh->b_data)) 267 /* bad block bitmap */ 474 if (!(*errp) && 475 ext4_test_inode_state(inode, EXT4_STATE_DELALLOC_RESERVED)) { 476 spin_lock(&EXT4_I(inode)->i_block_reservation_lock);xattr.c https://github.com/mstsirkin/linux.git | C | 1336 lines
276 277 if (!ext3_test_inode_state(inode, EXT3_STATE_XATTR)) 278 return -ENODATA; 405 406 if (!ext3_test_inode_state(inode, EXT3_STATE_XATTR)) 407 return 0;resize.c https://github.com/mstsirkin/linux.git | C | 1120 lines
42 43 if (test_opt(sb, DEBUG)) 44 printk(KERN_DEBUG "EXT3-fs: adding %s group %u: %u blocks " 444 445 if (test_opt(sb, DEBUG)) 446 printk(KERN_DEBUGinode.c https://github.com/mstsirkin/linux.git | C | 1638 lines
48/* 49 * Test whether an inode is a fast symlink. 50 */ 80 bh, is_metadata, inode->i_mode, 81 test_opt(inode->i_sb, DATA_FLAGS)); 82 87 88 if (test_opt(inode->i_sb, DATA_FLAGS) == EXT3_MOUNT_JOURNAL_DATA || 89 (!is_metadata && !ext3_should_journal_data(inode))) {balloc.c https://github.com/mstsirkin/linux.git | C | 1651 lines
115 offset = bitmap_blk - group_first_block; 116 if (!ext3_test_bit(offset, bh->b_data)) 117 /* bad block bitmap */ 122 offset = bitmap_blk - group_first_block; 123 if (!ext3_test_bit(offset, bh->b_data)) 124 /* bad block bitmap */ 269 * 270 * Test if the given goal block (group relative) is within the file's 271 * own block reservation window range. 444 */ 445 if (!test_opt(sb, RESERVATION)) 446 rsv->rsv_goal_size = 0;super.c https://github.com/mstsirkin/linux.git | C | 1525 lines
71 72 if (test_opt(sb, ERRORS_PANIC)) 73 panic("EXT2-fs: panic from previous error\n"); 73 panic("EXT2-fs: panic from previous error\n"); 74 if (test_opt(sb, ERRORS_RO)) { 75 ext2_msg(sb, KERN_CRIT, 225 seq_printf(seq, ",sb=%lu", sbi->s_sb_block); 226 if (test_opt(sb, MINIX_DF)) 227 seq_puts(seq, ",minixdf"); 227 seq_puts(seq, ",minixdf"); 228 if (test_opt(sb, GRPID)) 229 seq_puts(seq, ",grpid"); 229 seq_puts(seq, ",grpid"); 230 if (!test_opt(sb, GRPID) && (def_mount_opts & EXT2_DEFM_BSDGROUPS)) 231 seq_puts(seq, ",nogrpid");inode.c https://github.com/mstsirkin/linux.git | C | 1554 lines
45/* 46 * Test whether an inode is a fast symlink. 47 */dir.c https://github.com/mstsirkin/linux.git | C | 733 lines
31/* 32 * Tests against MAX_REC_LEN etc were put in place for 64k block 33 * sizes; if that is not possible on this arch, we can skip 33 * sizes; if that is not possible on this arch, we can skip 34 * those tests and speed things up. 35 */balloc.c https://github.com/mstsirkin/linux.git | C | 1555 lines
87 offset = bitmap_blk - group_first_block; 88 if (!ext2_test_bit(offset, bh->b_data)) 89 /* bad block bitmap */ 94 offset = bitmap_blk - group_first_block; 95 if (!ext2_test_bit(offset, bh->b_data)) 96 /* bad block bitmap */ 264 * 265 * Test if the given goal block (group relative) is within the file's 266 * own block reservation window range. 438 */ 439 if (!test_opt(sb, RESERVATION)) 440 rsv->rsv_goal_size = 0;inode.c https://github.com/mstsirkin/linux.git | C | 1177 lines
53 54static int ecryptfs_inode_test(struct inode *inode, void *lower_inode) 55{ 100 inode = iget5_locked(sb, (unsigned long)lower_inode, 101 ecryptfs_inode_test, ecryptfs_inode_set, 102 lower_inode);user.c https://github.com/mstsirkin/linux.git | C | 1011 lines
546 if ((kbuf->cmd == DLM_USER_LOCK || kbuf->cmd == DLM_USER_UNLOCK) && 547 (proc && test_bit(DLM_PROC_FLAGS_CLOSING, &proc->flags))) { 548 error = -EINVAL;recover.c https://github.com/mstsirkin/linux.git | C | 789 lines
50 51int dlm_wait_function(struct dlm_ls *ls, int (*testfn) (struct dlm_ls *ls)) 52{ 60 61 wait_event(ls->ls_wait_general, testfn(ls) || dlm_recovery_stopped(ls)); 62 del_timer_sync(&ls->ls_timer);lockspace.c https://github.com/mstsirkin/linux.git | C | 845 lines
178 error = wait_event_interruptible(ls->ls_uevent_wait, 179 test_and_clear_bit(LSFL_UEVENT_WAIT, &ls->ls_flags)); 180dir.c https://github.com/mstsirkin/linux.git | C | 719 lines
120 those safely to '/' if any are found in the middle of the prepath */ 121 /* BB test paths to Windows with '/' in the midst of prepath */ 122super.h https://github.com/mstsirkin/linux.git | C Header | 832 lines
35 (fsc)->mount_options->flags |= CEPH_MOUNT_OPT_##opt; 36#define ceph_test_mount_opt(fsc, opt) \ 37 (!!((fsc)->mount_options->flags & CEPH_MOUNT_OPT_##opt)) 109 u64 cap_id; /* unique cap id (mds provided) */ 110 int issued; /* latest, from the mds */ 111 int implemented; /* implemented superset of issued (for revocation) */ 152{ 153 if (atomic_dec_and_test(&capsnap->nref)) { 154 if (capsnap->xattr_blob) 377{ 378 if (ceph_test_mount_opt(ceph_sb_to_client(sb), INO32)) 379 ino = ceph_ino_to_ino32(ino); 438 439static inline bool ceph_i_test(struct inode *inode, unsigned mask) 440{snap.c https://github.com/mstsirkin/linux.git | C | 931 lines
188 atomic_read(&realm->nref), atomic_read(&realm->nref)-1); 189 if (atomic_dec_and_test(&realm->nref)) 190 __destroy_snap_realm(mdsc, realm); 200 atomic_read(&realm->nref), atomic_read(&realm->nref)-1); 201 if (!atomic_dec_and_test(&realm->nref)) 202 return;dir.c https://github.com/mstsirkin/linux.git | C | 1318 lines
201 /* make sure a dentry wasn't dropped while we didn't have parent lock */ 202 if (!ceph_i_test(dir, CEPH_I_COMPLETE)) { 203 dout(" lost I_COMPLETE on %p; falling back to mds\n", dir); 285 if ((filp->f_pos == 2 || fi->dentry) && 286 !ceph_test_mount_opt(fsc, NOASYNCREADDIR) && 287 ceph_snap(inode) != CEPH_SNAPDIR &&addr.c https://github.com/mstsirkin/linux.git | C | 1181 lines
71 if (unlikely(!mapping)) 72 return !TestSetPageDirty(page); 73 73 74 if (TestSetPageDirty(page)) { 75 dout("%p set_page_dirty %p idx %lu -- already dirty\n",namei.c https://github.com/mstsirkin/linux.git | C | 988 lines
138 cachefiles_printk_object(object, NULL); 139 } else if (test_and_set_bit(CACHEFILES_OBJECT_BURIED, &object->flags)) { 140 printk(KERN_ERR "CacheFiles: Error:" 162 163 if (test_and_set_bit(CACHEFILES_OBJECT_ACTIVE, &object->flags)) { 164 printk(KERN_ERR "CacheFiles: Error: Object already active\n"); 205 206 if (test_bit(CACHEFILES_OBJECT_ACTIVE, &xobject->flags)) { 207 wait_queue_head_t *wq; 228 prepare_to_wait(wq, &wait, TASK_UNINTERRUPTIBLE); 229 if (!test_bit(CACHEFILES_OBJECT_ACTIVE, &xobject->flags)) 230 break; 236 if (requeue && 237 test_bit(CACHEFILES_OBJECT_ACTIVE, &xobject->flags)) { 238 _debug("queue OBJ%x behind OBJ%x after wait",daemon.c https://github.com/mstsirkin/linux.git | C | 752 lines
169 170 if (!test_bit(CACHEFILES_READY, &cache->flags)) 171 return 0; 186 " bstop=%llx", 187 test_bit(CACHEFILES_CULLING, &cache->flags) ? '1' : '0', 188 (unsigned long long) cache->frun, 221 222 if (test_bit(CACHEFILES_DEAD, &cache->flags)) 223 return -EIO; 278 ret = -EIO; 279 if (!test_bit(CACHEFILES_DEAD, &cache->flags)) 280 ret = cmd->handler(cache, args); 301 302 if (test_bit(CACHEFILES_STATE_CHANGED, &cache->flags)) 303 mask |= POLLIN;tree-log.c https://github.com/mstsirkin/linux.git | C | 1885 lines
216{ 217 if (atomic_dec_and_test(&root->log_writers)) { 218 smp_mb();transaction.c https://github.com/mstsirkin/linux.git | C | 1425 lines
36 WARN_ON(atomic_read(&transaction->use_count) == 0); 37 if (atomic_dec_and_test(&transaction->use_count)) { 38 BUG_ON(!list_empty(&transaction->list));ordered-data.c https://github.com/mstsirkin/linux.git | C | 983 lines
70 struct rb_node *prev = NULL; 71 struct rb_node *test; 72 struct btrfs_ordered_extent *entry; 90 while (prev && file_offset >= entry_end(prev_entry)) { 91 test = rb_next(prev); 92 if (!test) 93 break; 94 prev_entry = rb_entry(test, struct btrfs_ordered_extent, 95 rb_node); 98 99 prev = test; 100 } 104 while (prev && file_offset < entry_end(prev_entry)) { 105 test = rb_prev(prev); 106 if (!test)file.c https://github.com/mstsirkin/linux.git | C | 1862 lines
127 128 if (!btrfs_test_opt(root, AUTO_DEFRAG)) 129 return 0; 440 int ret; 441 int testend = 1; 442 unsigned long flags; 447 len = (u64)-1; 448 testend = 0; 449 } 463 flags = em->flags; 464 if (skip_pinned && test_bit(EXTENT_FLAG_PINNED, &em->flags)) { 465 if (testend && em->start + em->len >= start + len) { 470 start = em->start + em->len; 471 if (testend) 472 len = start + len - (em->start + em->len);extent_io.c https://github.com/mstsirkin/linux.git | C | 2015 lines
143 return; 144 if (atomic_dec_and_test(&state->refs)) { 145#if LEAK_DEBUGextent-tree.c https://github.com/mstsirkin/linux.git | C | 1831 lines
103{ 104 if (atomic_dec_and_test(&cache->count)) { 105 WARN_ON(cache->pinned > 0); 276{ 277 if (atomic_dec_and_test(&ctl->count)) 278 kfree(ctl);disk-io.c https://github.com/mstsirkin/linux.git | C | 1802 lines
197 em->bdev = 198 BTRFS_I(inode)->root->fs_info->fs_devices->latest_bdev; 199 read_unlock(&em_tree->lock); 212 em->block_start = 0; 213 em->bdev = BTRFS_I(inode)->root->fs_info->fs_devices->latest_bdev; 214 380 */ 381 if (test_bit(EXTENT_BUFFER_CORRUPT, &eb->bflags)) 382 return ret;delayed-inode.c https://github.com/mstsirkin/linux.git | C | 1773 lines
264 265 if (atomic_dec_and_test(&delayed_node->refs)) { 266 struct btrfs_root *root = delayed_node->root; 522 __btrfs_remove_delayed_item(item); 523 if (atomic_dec_and_test(&item->refs)) 524 kfree(item);ctree.h https://github.com/mstsirkin/linux.git | C Header | 1742 lines
230 231 /* seek speed 0-100 where 100 is fastest */ 232 u8 seek_speed; 233 234 /* bandwidth 0-100 where 100 is fastest */ 235 u8 bandwidth;compression.c https://github.com/mstsirkin/linux.git | C | 1035 lines
168 */ 169 if (!atomic_dec_and_test(&cb->pending_bios)) 170 goto out; 279 */ 280 if (!atomic_dec_and_test(&cb->pending_bios)) 281 goto out; 357 358 bdev = BTRFS_I(inode)->root->fs_info->fs_devices->latest_bdev; 359async-thread.c https://github.com/mstsirkin/linux.git | C | 718 lines
199 } 200 if (!test_bit(WORK_DONE_BIT, &work->flags)) 201 break; 207 */ 208 if (test_and_set_bit(WORK_ORDER_DONE_BIT, &work->flags)) 209 break; 226{ 227 if (atomic_dec_and_test(&worker->refs)) 228 kfree(worker);write.c https://github.com/mstsirkin/linux.git | C | 764 lines
328 BUG(); 329 if (test_set_page_writeback(primary_page)) 330 BUG(); 368 BUG(); 369 if (test_set_page_writeback(page)) 370 BUG();vlocation.c https://github.com/mstsirkin/linux.git | C | 726 lines
499 500 if (likely(!atomic_dec_and_test(&vl->usage))) { 501 _leave("");fsclient.c https://github.com/mstsirkin/linux.git | C | 1905 lines
86 status->parent.vid = vnode->fid.vid; 87 if (changed && !test_bit(AFS_VNODE_UNSET, &vnode->flags)) { 88 _debug("vnode changed"); 113 status->data_version = data_version; 114 if (vnode && !test_bit(AFS_VNODE_UNSET, &vnode->flags)) { 115 _debug("vnode modified %llx on {%x:%u}",flock.c https://github.com/mstsirkin/linux.git | C | 588 lines
118 119 if (test_bit(AFS_VNODE_UNLOCKING, &vnode->flags)) { 120 _debug("unlock"); 141 142 if (test_and_set_bit(AFS_VNODE_LOCKING, &vnode->flags)) 143 BUG(); 175 176 if (test_and_set_bit(AFS_VNODE_LOCKING, &vnode->flags)) 177 BUG(); 240 cancel_delayed_work(&vnode->lock_work); 241 if (!test_and_clear_bit(AFS_VNODE_READLOCKED, &vnode->flags) && 242 !test_and_clear_bit(AFS_VNODE_WRITELOCKED, &vnode->flags)) 243 BUG(); 244 if (test_and_set_bit(AFS_VNODE_UNLOCKING, &vnode->flags)) 245 BUG();super.c https://github.com/mstsirkin/linux.git | C | 626 lines
34 tail->bm_flag = cpu_to_be32(clean); 35 secs_to_datestamp(get_seconds(), &tail->disk_change); 36 affs_fix_checksum(sb, bh);file.c https://github.com/mstsirkin/linux.git | C | 942 lines
60 61 if (atomic_dec_and_test(&AFFS_I(inode)->i_opencnt)) { 62 mutex_lock(&inode->i_mutex);vfs_inode_dotl.c https://github.com/mstsirkin/linux.git | C | 1003 lines
88 89static int v9fs_test_inode_dotl(struct inode *inode, void *data) 90{ 111/* Always get a new inode */ 112static int v9fs_test_new_inode_dotl(struct inode *inode, void *data) 113{ 136 struct v9fs_session_info *v9ses = sb->s_fs_info; 137 int (*test)(struct inode *, void *); 138 139 if (new) 140 test = v9fs_test_new_inode_dotl; 141 else 141 else 142 test = v9fs_test_inode_dotl; 143mpage.c https://github.com/mstsirkin/linux.git | C | 718 lines
45{ 46 const int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); 47 struct bio_vec *bvec = bio->bi_io_vec + bio->bi_vcnt - 1;fs-writeback.c https://github.com/mstsirkin/linux.git | C | 1383 lines
70{ 71 return test_bit(BDI_writeback_running, &bdi->state); 72} 240 * It _appears_ to be in the future, but is actually in distant past. 241 * This test is necessary to prevent such wrapped-around relative times 242 * from permanently stopping the whole bdi writeback.direct-io.c https://github.com/mstsirkin/linux.git | C | 1298 lines
176{ 177 if (atomic_dec_and_test(&inode->i_dio_count)) 178 wake_up_bit(&inode->i_state, __I_DIO_WAKEUP); 450 * holding the bio_lock so we don't need set_current_state()'s barrier 451 * and can call it after testing our condition. 452 */ 474{ 475 const int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); 476 struct bio_vec *bvec = bio->bi_io_vec;buffer.c https://github.com/mstsirkin/linux.git | C | 1793 lines
100{ 101 if (!test_bit(BH_Quiet, &bh->b_state) && printk_ratelimit()) 102 return 0;bio.c https://github.com/mstsirkin/linux.git | C | 1692 lines
32/* 33 * Test patch to inline a certain number of bi_io_vec's inside the bio 34 * itself, to shrink a bio data allocation from two mempool calls to one 420 */ 421 if (atomic_dec_and_test(&bio->bi_cnt)) { 422 bio->bi_next = NULL;binfmt_misc.c https://github.com/mstsirkin/linux.git | C | 745 lines
77 78 if (!test_bit(Enabled, &e->flags)) 79 continue; 80 81 if (!test_bit(Magic, &e->flags)) { 82 if (p && !strcmp(e->magic, p + 1)) 336 goto Einval; 337 if (test_bit(Magic, &e->flags)) { 338 char *s = strchr(p, del); 441 442 if (test_bit(Enabled, &e->flags)) 443 status = "enabled"; 467 468 if (!test_bit(Magic, &e->flags)) { 469 sprintf(dp, "extension .%s\n", e->magic);binfmt_flat.c https://github.com/mstsirkin/linux.git | C | 960 lines
61 * used in producing FLAT files, and because it seems to be large 62 * enough to make all the gcc alignment related tests happy. 63 */ 369 370 /* Range checked already above so doing the range tests is redundant...*/ 371 return(addr);aio.c https://github.com/mstsirkin/linux.git | C | 1799 lines
244 BUG_ON(atomic_read(&kioctx->users) <= 0); 245 if (unlikely(atomic_dec_and_test(&kioctx->users))) 246 __put_ioctx(kioctx);xircom_pgs.S https://github.com/mstsirkin/linux.git | Assembly | 1192 lines
97 * TODO: 98 * lots. grep for TODO. Interrupt safety needs stress-testing. Better flow 99 * control. Interrupting host upon change in DCD, etc, counting transitions.events.c https://github.com/mstsirkin/linux.git | C | 1693 lines
334 335static inline int test_evtchn(int port) 336{ 337 struct shared_info *s = HYPERVISOR_shared_info; 338 return sync_test_bit(port, &s->evtchn_pending[0]); 339} 385 */ 386 if (sync_test_bit(port, &s->evtchn_pending[0]) && 387 !sync_test_and_set_bit(port / BITS_PER_LONG,pcwd_usb.c https://github.com/mstsirkin/linux.git | C | 863 lines
22 * Thanks also to Simon Machell at Berkshire Products Inc. for 23 * providing the test hardware. More info is available at 24 * http://www.berkprod.com/ or http://www.pcwatchdog.com/ 491 /* /dev/watchdog can only be opened once */ 492 if (test_and_set_bit(0, &is_active)) 493 return -EBUSY;it87_wdt.c https://github.com/mstsirkin/linux.git | C | 781 lines
143static int timeout = DEFAULT_TIMEOUT; 144static int testmode = DEFAULT_TESTMODE; 145static int nowayout = DEFAULT_NOWAYOUT; 156module_param(testmode, int, 0); 157MODULE_PARM_DESC(testmode, "Watchdog test mode (1 = no reboot), default=" 158 __MODULE_STRING(DEFAULT_TESTMODE)); 228 229 if (testmode) 230 cfg = 0; 347 *status = 0; 348 if (testmode) { 349 int ret = superio_enter(); 361 } 362 if (test_and_clear_bit(WDTS_KEEPALIVE, &wdt_status)) 363 *status |= WDIOF_KEEPALIVEPING;f71808e_wdt.c https://github.com/mstsirkin/linux.git | C | 824 lines
467 /* If the watchdog is alive we don't need to start it again */ 468 if (test_and_set_bit(0, &watchdog.opened)) 469 return -EBUSY;vermilion.c https://github.com/mstsirkin/linux.git | C | 1185 lines
163 j += PAGE_SIZE) { 164 (void)put_page_testzero(virt_to_page(j)); 165 } 384{ 385 if (atomic_dec_and_test(&par->refcount)) { 386 pci_set_drvdata(par->vdc, NULL);omapfb-main.c https://github.com/mstsirkin/linux.git | C | 2179 lines
57static unsigned int omapfb_test_pattern; 58module_param_named(test, omapfb_test_pattern, bool, 0644); 59#endifvenc.c https://github.com/mstsirkin/linux.git | C | 902 lines
86#define VENC_OUTPUT_CONTROL 0xC4 87#define VENC_OUTPUT_TEST 0xC8 88#define VENC_DAC_B__DAC_C 0xC8mdp_hw.h https://github.com/mstsirkin/linux.git | C Header | 628 lines
58#define MDP_AXI_ERROR_MASTER_STOP (0x00078) 59#define MDP_SEL_CLK_OR_HCLK_TEST_BUS (0x0007c) 60#define MDP_PRIMARY_VSYNC_OUT_CTRL (0x00080) 131#define MDP_FULL_BYPASS_WORD63 (0x101fc) 132#define MDP_TFETCH_TEST_MODE (0x20004) 133#define MDP_TFETCH_STATUS (0x20008) 146#define MDP_TV_OUT_CR_CLAMP (0xc0020) 147#define MDP_TEST_MODE_CLK (0xd0000) 148#define MDP_TEST_MISR_RESET_CLK (0xd0004) 148#define MDP_TEST_MISR_RESET_CLK (0xd0004) 149#define MDP_TEST_EXPORT_MISR_CLK (0xd0008) 150#define MDP_TEST_MISR_CURR_VAL_CLK (0xd000c) 150#define MDP_TEST_MISR_CURR_VAL_CLK (0xd000c) 151#define MDP_TEST_MODE_HCLK (0xd0100) 152#define MDP_TEST_MISR_RESET_HCLK (0xd0104)mbxfb.c https://github.com/mstsirkin/linux.git | C | 1071 lines
91 .blue = {0, 5, 0}, 92 .activate = FB_ACTIVATE_TEST, 93 .height = -1,matroxfb_maven.c https://github.com/mstsirkin/linux.git | C | 1300 lines
92 }, offsetof(struct matrox_fb_info, altout.tvo_params.gamma) }, 93 { { MATROXFB_CID_TESTOUT, V4L2_CTRL_TYPE_BOOLEAN, 94 "test output", 96 0, 97 }, offsetof(struct matrox_fb_info, altout.tvo_params.testout) }, 98 { { MATROXFB_CID_DEFLICKER, V4L2_CTRL_TYPE_INTEGER,matroxfb_g450.c https://github.com/mstsirkin/linux.git | C | 640 lines
53 }, offsetof(struct matrox_fb_info, altout.tvo_params.hue) }, 54 { { MATROXFB_CID_TESTOUT, V4L2_CTRL_TYPE_BOOLEAN, 55 "test output", 57 0, 58 }, offsetof(struct matrox_fb_info, altout.tvo_params.testout) }, 59}; 201 break; 202 case MATROXFB_CID_TESTOUT: 203 { 382 0x00, 383 0x00, /* test */ 384 0xF9, /* modified by code (F9 written...) */ 438 0x00, 439 0x00, /* test */ 440 0xF9, /* modified by code (F9 written...) */matroxfb_base.h https://github.com/mstsirkin/linux.git | C Header | 733 lines
391 int brightness, contrast, saturation, hue, gamma; 392 int testout, deflicker; 393 } tvo_params;matroxfb_Ti3026.c https://github.com/mstsirkin/linux.git | C | 745 lines
13 * Contributors: "menion?" <menion@mindless.com> 14 * Betatesting, fixes, ideas 15 * 16 * "Kurt Garloff" <garloff@suse.de> 17 * Betatesting, fixes, ideas, videomodes, videomodes timmings 18 * 19 * "Tom Rini" <trini@kernel.crashing.org> 20 * MTRR stuff, PPC cleanups, betatesting, fixes, ideas 21 * 26 * "Daniel Haun" <haund@usa.net> 27 * Testing, hardware cursor fixes 28 * 32 * "Gerd Knorr" <kraxel@goldbach.isdn.cs.tu-berlin.de> 33 * Betatesting 34 *matroxfb_DAC1064.c https://github.com/mstsirkin/linux.git | C | 1107 lines
69 M1064_XMISCCTRL, 70 M1064_XGENIOCTRL, M1064_XGENIODATA, M1064_XZOOMCTRL, M1064_XSENSETEST, 71 M1064_XCRCBITSEL, 82 M1064_XMISCCTRL_DAC_8BIT, 83 0x00, 0x00, M1064_XZOOMCTRL_1, M1064_XSENSETEST_BCOMP | M1064_XSENSETEST_GCOMP | M1064_XSENSETEST_RCOMP | M1064_XSENSETEST_PDOWN, 84 0x00,intelfbdrv.c https://github.com/mstsirkin/linux.git | C | 1706 lines
60 * 61 * 02/2003 - Version 0.7.0: Test on 852GM/855GM. Acceleration and HW 62 * cursor are disabled on this platform. (David Dawes) 63 * 64 * 02/2003 - Version 0.7.1: Test on 845G. Acceleration is disabled 65 * on this platform. (David Dawes) 66 * 67 * 02/2003 - Version 0.7.2: Test on 830M. Acceleration and HW 68 * cursor are disabled on this platform. (David Dawes)i810_main.c https://github.com/mstsirkin/linux.git | C | 1865 lines
12 * 13 * Fredrik Andersson <krueger@shell.linux.se> - alpha testing of 14 * the VESA GTF 15 * 16 * Brad Corrion <bcorrion@web-co.com> - alpha testing of customized 17 * timings supportnewport_con.c https://github.com/mstsirkin/linux.git | C | 768 lines
69 70#define TESTVAL 0xdeadbeef 71#define XSTI_TO_FXSTART(val) (((val) & 0xffff) << 11) 317 318 npregs->set.xstarti = TESTVAL; 319 if (npregs->set._xstart.word != XSTI_TO_FXSTART(TESTVAL))radeon_base.c https://github.com/mstsirkin/linux.git | C | 1677 lines
324 325 /* Very simple test to make sure it appeared */ 326 if (BIOS_IN16(0) != 0xaa55) {atyfb_base.c https://github.com/mstsirkin/linux.git | C | 1631 lines
116#define FAIL(msg) do { \ 117 if (!(var->activate & FB_ACTIVATE_TEST)) \ 118 printk(KERN_CRIT "atyfb: " msg "\n"); \ 122 if (x > _max_) { \ 123 if (!(var->activate & FB_ACTIVATE_TEST)) \ 124 printk(KERN_CRIT "atyfb: " msg " %x(%x)\n", x, _max_); \vga16fb.c https://github.com/mstsirkin/linux.git | C | 1467 lines
73 .bits_per_pixel = 4, 74 .activate = FB_ACTIVATE_TEST, 75 .height = -1,tmiofb.c https://github.com/mstsirkin/linux.git | C | 1048 lines
139#define LCR_CCIFC 0x024 /* CMOS Camera IF Control */ 140#define LCR_HWT 0x026 /* Hardware Test */ 141#define LCR_LCDCCRC 0x100 /* LCDC Clock and Reset Control */stifb.c https://github.com/mstsirkin/linux.git | C | 1419 lines
41/* TODO: 42 * - 1bpp mode is completely untested 43 * - add support for h/w accelerationsstfb.c https://github.com/mstsirkin/linux.git | C | 1533 lines
40 41-TODO: at one time or another test that the mode is acceptable by the monitor 42-ASK: Can I choose different ordering for the color bitfields (rgba argb ...) 384 385 /* validity tests */ 386 if (var->xres <= 1 || yDim <= 0 || var->hsync_len <= 1 ||pxa168fb.h https://github.com/mstsirkin/linux.git | C Header | 558 lines
232#define CFG_GRA_HSMOOTH_MASK 0x00004000 233#define CFG_GRA_TSTMODE(test) ((test) << 13) 234#define CFG_GRA_TSTMODE_MASK 0x00002000 249#define CFG_DMA_HSMOOTH_MASK 0x00000040 250#define CFG_DMA_TSTMODE(test) ((test) << 5) 251#define CFG_DMA_TSTMODE_MASK 0x00000020pm2fb.c https://github.com/mstsirkin/linux.git | C | 1848 lines
16 * hopefully other big-endian) devices now work, thanks to a lot of 17 * testing work by Ron Murray. I have no access to CVision hardware, 18 * and therefore for now I am omitting the CVision code.macfb.c https://github.com/mstsirkin/linux.git | C | 934 lines
143static int inverse; 144static int vidtest; 145 537 else 538 if (!strcmp(this_opt, "vidtest")) 539 vidtest = 1; /* enable experimental CLUT code */