PageRenderTime 33ms queryTime 234ms sortTime 2312ms getByIdsTime 51ms findMatchingLines 13ms

50+ results for 'test' (33 ms)

Not the results you expected?
es-class.max.js https://gitlab.com/Mirros/cdnjs | JavaScript | 426 lines
                    
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/gag2502/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.com
                    
                
6.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 explicitly
                    
                
mtk_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 {
                    
                
wrapper.c https://github.com/Dabary/linux_gt-i9000.git | C | 492 lines
                    
353
                    
354		/* Test FCS and signal success if the frame is good */
                    
355		if (rx_buff->fcs == GOOD_FCS) {
                    
                
isdnl3.c https://github.com/Dabary/linux_gt-i9000.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)
                    
                
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)))
                    
                
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::Tests
                    
                
ast-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>
                    
                
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; -- 1751
                    
                
JMeterEngine.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>&nbsp;testPlan)</CODE>
                    
136
                    
158            <CODE>&nbsp;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>&nbsp;testPlan)</PRE>
                    
211<DL>
                    
218
                    
219<A NAME="runTest()"><!-- --></A>
                    
220
                    
                
FBSDKInternalUtility.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/josephcooney/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.s
                    
                
TemplateTest.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 for
                    
                
hi8435.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	0x02
                    
                
odm_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 */
                    
74
                    
                
status_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 both
                    
                
users_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 do
                    
                
menu.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&nbsp;<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>&nbsp;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>&nbsp;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) {
                    
                
 

Source

Language