PageRenderTime 2040ms queryTime 268ms sortTime 851ms getByIdsTime 41ms findMatchingLines 28ms

100+ results results for 'test' (2040 ms)

Not the results you expected?
pidfd_test.c git://github.com/torvalds/linux.git | C | 536 lines
                    
77	signal_received = 0;
                    
78	ksft_test_result_pass("%s test: Sent signal\n", test_name);
                    
79	return 0;
                    
297	case PIDFD_SKIP:
                    
298		ksft_print_msg("%s test: Skipping test\n", test_name);
                    
299		ret = 0;
                    
438	else
                    
439		ksft_test_result_pass("%s test: Passed\n", test_name);
                    
440}
                    
515			since_child_exit > CHILD_THREAD_MIN_WAIT + 2)
                    
516		ksft_exit_fail_msg("%s test: Failed\n", test_name);
                    
517	else
                    
517	else
                    
518		ksft_test_result_pass("%s test: Passed\n", test_name);
                    
519}
                    
                
xm_xslt_transformation.e git://github.com/gobo-eiffel/gobo.git | Specman e | 428 lines
                    
38			create arguments.make (7)
                    
39			arguments.set_equality_tester (expression_tester)
                    
40			initialized := True
                    
                
buffer_test.go git://github.com/axw/llgo.git | Go | 544 lines
                    
208	for i := 3; i < 30; i += 3 {
                    
209		s := fillBytes(t, "TestLargeReads (1)", &buf, "", 5, testBytes[0:len(testBytes)/i])
                    
210		empty(t, "TestLargeReads (2)", &buf, s, make([]byte, len(data)))
                    
260	for i := 3; i < 30; i += 3 {
                    
261		s := fillBytes(t, "TestReadFrom (1)", &buf, "", 5, testBytes[0:len(testBytes)/i])
                    
262		var b Buffer
                    
270	for i := 3; i < 30; i += 3 {
                    
271		s := fillBytes(t, "TestWriteTo (1)", &buf, "", 5, testBytes[0:len(testBytes)/i])
                    
272		var b Buffer
                    
375func TestReadBytes(t *testing.T) {
                    
376	for _, test := range readBytesTests {
                    
377		buf := NewBufferString(test.buffer)
                    
395func TestReadString(t *testing.T) {
                    
396	for _, test := range readBytesTests {
                    
397		buf := NewBufferString(test.buffer)
                    
                
has_template.hpp git://github.com/MisterTea/HyperNEAT.git | C++ Header | 348 lines
                    
30
                    
31/// Expands to a metafunction which tests whether an inner class template with a particular name exists.
                    
32/**
                    
123
                    
124/// Expands to a metafunction which tests whether an inner class template with a particular name exists.
                    
125/**
                    
217
                    
218/// Expands to a metafunction which tests whether an inner class template with a particular name exists.
                    
219/**
                    
283  
                    
284/// Expands to a metafunction which tests whether an inner class template with a particular name exists.
                    
285/**
                    
                
RepositoryJpaIntegrationTestMetadata.java git://github.com/SpringSource/spring-roo.git | Java | 849 lines
                    
9import org.apache.commons.lang3.builder.ToStringBuilder;
                    
10import org.springframework.roo.addon.layers.repository.jpa.annotations.test.RooRepositoryJpaIntegrationTest;
                    
11import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
                    
39
                    
40  private static final String PROVIDES_TYPE_STRING = RepositoryJpaIntegrationTestMetadata.class
                    
41      .getName();
                    
56  private static final JavaType BEFORE = new JavaType("org.junit.Before");
                    
57  private static final JavaType TEST = new JavaType("org.junit.Test");
                    
58  private static final JavaType RUN_WITH = new JavaType("org.junit.runner.RunWith");
                    
172      // Add persist should generate id method
                    
173      ensureGovernorHasMethod(new MethodMetadataBuilder(getPersistGenerateIdTestMethod()));
                    
174
                    
368  /**
                    
369   * Builds a method to test the find all custom method not filtered and paged.
                    
370   * 
                    
                
PartTree.java git://github.com/SpringSource/spring-roo.git | Java | 517 lines
                    
232      int publicStaticFinal = Modifier.PUBLIC + Modifier.STATIC + Modifier.FINAL;
                    
233      int privateStatic = Modifier.PRIVATE + Modifier.STATIC;
                    
234      int privateStaticFinal = Modifier.PRIVATE + Modifier.STATIC + Modifier.FINAL;
                    
237          || field.getModifier() == publicStatic || field.getModifier() == publicStaticFinal
                    
238          || field.getModifier() == privateStatic || field.getModifier() == privateStaticFinal) {
                    
239        continue;
                    
                
url_test.go git://github.com/axw/llgo.git | Go | 1231 lines
                    
441
                    
442func DoTest(t *testing.T, parse func(string) (*URL, error), name string, tests []URLTest) {
                    
443	for _, tt := range tests {
                    
480func TestParse(t *testing.T) {
                    
481	DoTest(t, Parse, "Parse", urltests)
                    
482}
                    
542
                    
543func DoTestString(t *testing.T, parse func(string) (*URL, error), name string, tests []URLTest) {
                    
544	for _, tt := range tests {
                    
560
                    
561func TestURLString(t *testing.T) {
                    
562	DoTestString(t, Parse, "Parse", urltests)
                    
718
                    
719func TestEncodeQuery(t *testing.T) {
                    
720	for _, tt := range encodeQueryTests {
                    
                
EventSystemImpl.java git://github.com/MovingBlocks/Terasology.git | Java | 608 lines
                    
244        if (eventHandlerMap != null) {
                    
245            ReceiverEventHandlerInfo testReceiver = new ReceiverEventHandlerInfo<>(eventReceiver, 0, componentTypes);
                    
246            for (Class<? extends Component> c : componentTypes) {
                    
246            for (Class<? extends Component> c : componentTypes) {
                    
247                eventHandlerMap.remove(c, testReceiver);
                    
248                for (Class<? extends Event> childType : childEvents.get(eventClass)) {
                    
248                for (Class<? extends Event> childType : childEvents.get(eventClass)) {
                    
249                    eventHandlerMap.remove(childType, testReceiver);
                    
250                }
                    
                
smtp_test.go git://github.com/axw/llgo.git | Go | 738 lines
                    
26
                    
27var authTests = []authTest{
                    
28	{PlainAuth("", "user", "pass", "testserver"), []string{}, "PLAIN", []string{"\x00user\x00pass"}},
                    
61
                    
62func TestAuthPlain(t *testing.T) {
                    
63	auth := PlainAuth("foo", "bar", "baz", "servername")
                    
509
                    
510func TestAuthFailed(t *testing.T) {
                    
511	server := strings.Join(strings.Split(authFailedServer, "\n"), "\r\n")
                    
553
                    
554func TestTLSClient(t *testing.T) {
                    
555	ln := newLocalListener(t)
                    
573
                    
574func TestTLSConnState(t *testing.T) {
                    
575	ln := newLocalListener(t)
                    
                
test262.properties git://github.com/mozilla/rhino.git | Properties File | 6601 lines
                    
1# This is a configuration file for Test262SuiteTest.java. See ./README.md for more info about this file
                    
2
                    
                
server_test.go git://github.com/axw/llgo.git | Go | 683 lines
                    
279
                    
280func testHTTPRPC(t *testing.T, path string) {
                    
281	var client *Client
                    
514
                    
515func TestCountMallocsOverHTTP(t *testing.T) {
                    
516	if testing.Short() {
                    
541
                    
542func TestClientWriteError(t *testing.T) {
                    
543	w := &writeCrasher{done: make(chan bool)}
                    
557
                    
558func TestTCPClose(t *testing.T) {
                    
559	once.Do(startServer)
                    
578
                    
579func TestErrorAfterClientClose(t *testing.T) {
                    
580	once.Do(startServer)
                    
                
JpaUnitTestMetadata.java git://github.com/SpringSource/spring-roo.git | Java | 586 lines
                    
13import org.springframework.roo.addon.jpa.addon.entity.JpaEntityMetadata.RelationInfo;
                    
14import org.springframework.roo.addon.jpa.annotations.test.RooJpaUnitTest;
                    
15import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
                    
43
                    
44  private static final String PROVIDES_TYPE_STRING = JpaUnitTestMetadata.class.getName();
                    
45  private static final String PROVIDES_TYPE = MetadataIdentificationUtils
                    
52  private static final JavaType AFTER = new JavaType("org.junit.After");
                    
53  private static final JavaType TEST = new JavaType("org.junit.Test");
                    
54  private static final JavaType IGNORE = new JavaType("org.junit.Ignore");
                    
130
                    
131      // Create removeRelation test method 
                    
132      if (relationInfo.removeMethod != null) {
                    
181  /**
                    
182   * Creates a method to test item additions to a relationship. 
                    
183   * 
                    
                
TwitterCLI.groovy git://github.com/jdbernard/gritter.git | Groovy | 1127 lines
                    
240        switch(option) {
                    
241            case "status": deleteStatus(args); break
                    
242            case "list": deleteList(args); break
                    
243            default: args.addFirst(option)
                    
244                deleteStatus(args) }}
                    
245
                    
                
JpaFieldCreatorProvider.java git://github.com/SpringSource/spring-roo.git | Java | 2376 lines
                    
22import org.springframework.roo.addon.plural.addon.PluralService;
                    
23import org.springframework.roo.addon.test.providers.DataOnDemandCreatorProvider;
                    
24import org.springframework.roo.classpath.PhysicalTypeCategory;
                    
                
AnnotationLocatorTest.java git://github.com/liferay/liferay-portal.git | Java | 899 lines
                    
17import com.liferay.petra.string.StringBundler;
                    
18import com.liferay.portal.kernel.test.rule.AggregateTestRule;
                    
19import com.liferay.portal.kernel.test.rule.CodeCoverageAssertor;
                    
19import com.liferay.portal.kernel.test.rule.CodeCoverageAssertor;
                    
20import com.liferay.portal.test.rule.LiferayUnitTestRule;
                    
21
                    
169 * &#64;Type(value = 4)
                    
170 * TestInterface1 {
                    
171 *   &#64;Method(value = 4)
                    
185	@Rule
                    
186	public static final AggregateTestRule aggregateTestRule =
                    
187		new AggregateTestRule(
                    
243		List<Class<?>> expectedClassHierarchy = Arrays.asList(
                    
244			TestClass.class, SuperClass.class, TestInterface2.class,
                    
245			TestInterface1.class, OriginClass.class, SuperInterface2.class,
                    
                
JpaDataOnDemandCreator.java git://github.com/SpringSource/spring-roo.git | Java | 401 lines
                    
16import org.springframework.roo.addon.jpa.addon.entity.JpaEntityMetadata.RelationInfo;
                    
17import org.springframework.roo.addon.test.providers.DataOnDemandCreatorProvider;
                    
18import org.springframework.roo.classpath.PhysicalTypeCategory;
                    
59  private static final Dependency SPRING_BOOT_TEST_DEPENDENCY = new Dependency(
                    
60      "org.springframework.boot", "spring-boot-test", null, DependencyType.JAR,
                    
61      DependencyScope.TEST);
                    
90
                    
91    // Add plugin to generate test jar
                    
92    addMavenJarPlugin(entity.getModule());
                    
99    // Obatain test path for the module of the new class
                    
100    final LogicalPath path = LogicalPath.getInstance(Path.SRC_TEST_JAVA, name.getModule());
                    
101    Validate.notNull(path, "Location of the new data on demand provider is required");
                    
121
                    
122    // Add spring-boot-test dependency with test scope
                    
123    projectOperations.addDependency(moduleName, SPRING_BOOT_TEST_DEPENDENCY);
                    
                
jar_test.go git://github.com/axw/llgo.git | Go | 1267 lines
                    
328type jarTest struct {
                    
329	description string   // The description of what this test is supposed to test
                    
330	fromURL     string   // The full URL of the request from which Set-Cookie headers where received
                    
342// run runs the jarTest.
                    
343func (test jarTest) run(t *testing.T, jar *Jar) {
                    
344	now := tNow
                    
373		t.Errorf("Test %q Content\ngot  %q\nwant %q",
                    
374			test.description, got, test.content)
                    
375	}
                    
384		if got := strings.Join(s, " "); got != query.want {
                    
385			t.Errorf("Test %q #%d\ngot  %q\nwant %q", test.description, i, got, query.want)
                    
386		}
                    
389
                    
390// basicsTests contains fundamental tests. Each jarTest has to be performed on
                    
391// a fresh, empty Jar.
                    
                
LocalProcessExecutorTest.java git://github.com/liferay/liferay-portal.git | Java | 1882 lines
                    
30import com.liferay.petra.test.util.ThreadTestUtil;
                    
31import com.liferay.portal.kernel.test.ReflectionTestUtil;
                    
32import com.liferay.portal.kernel.test.rule.AggregateTestRule;
                    
33import com.liferay.portal.kernel.test.rule.CodeCoverageAssertor;
                    
34import com.liferay.portal.test.rule.LiferayUnitTestRule;
                    
35
                    
89	@Rule
                    
90	public static final AggregateTestRule aggregateTestRule =
                    
91		new AggregateTestRule(
                    
127	public void testHeartBeatThreadDetachOnUnknown() throws Exception {
                    
128		_testHearBeatThreadDetachByShutdownHook(
                    
129			Operations.SHUTDOWN_HOOK_TRIGGER_UNKNOWN,
                    
138	@Test
                    
139	public void testProcessCallableWithException() throws Exception {
                    
140
                    
                
transport_test.go git://github.com/axw/llgo.git | Go | 2810 lines
                    
79// some tests use this to manage raw tcp connections for later inspection
                    
80func makeTestDial(t *testing.T) (*testConnSet, func(n, addr string) (net.Conn, error)) {
                    
81	connSet := &testConnSet{
                    
362
                    
363func TestTransportMaxPerHostIdleConns(t *testing.T) {
                    
364	defer afterTest(t)
                    
432
                    
433func TestTransportServerClosingUnexpectedly(t *testing.T) {
                    
434	defer afterTest(t)
                    
489// This fails pretty reliably with GOMAXPROCS=100 or something high.
                    
490func TestStressSurpriseServerCloses(t *testing.T) {
                    
491	defer afterTest(t)
                    
550// with no bodies properly
                    
551func TestTransportHeadResponses(t *testing.T) {
                    
552	defer afterTest(t)
                    
                
source-map.js git://github.com/asual/lesscss-engine.git | JavaScript | 2064 lines
                    
97    b = b.trim();
                    
98    if (/^\//.test(b)) {
                    
99      return b;
                    
117  Domain.prototype.lookup = function(moduleName) {
                    
118    if (/^\./.test(moduleName)) {
                    
119      moduleName = normalize(join(dirname(this._currentModule), moduleName));
                    
                
transfer.go git://github.com/axw/llgo.git | Go | 829 lines
                    
68			if t.ContentLength == 0 {
                    
69				// Test to see if it's actually zero or just unset.
                    
70				var buf [1]byte
                    
161	if t.Close {
                    
162		if _, err := io.WriteString(w, "Connection: close\r\n"); err != nil {
                    
163			return err
                    
170	if t.shouldSendContentLength() {
                    
171		if _, err := io.WriteString(w, "Content-Length: "); err != nil {
                    
172			return err
                    
173		}
                    
174		if _, err := io.WriteString(w, strconv.FormatInt(t.ContentLength, 10)+"\r\n"); err != nil {
                    
175			return err
                    
177	} else if chunked(t.TransferEncoding) {
                    
178		if _, err := io.WriteString(w, "Transfer-Encoding: chunked\r\n"); err != nil {
                    
179			return err
                    
                
server.go git://github.com/axw/llgo.git | Go | 2267 lines
                    
297		// zero chunk to mark EOF
                    
298		bw.WriteString("0\r\n")
                    
299		if len(cw.res.trailers) > 0 {
                    
309		// present or not)
                    
310		bw.WriteString("\r\n")
                    
311	}
                    
506	// Note: if this reader size is every changed, update
                    
507	// TestHandlerBodyClose's assumptions.
                    
508	return bufio.NewReader(r)
                    
                
serve_test.go git://github.com/axw/llgo.git | Go | 3687 lines
                    
130
                    
131func newHandlerTest(h Handler) handlerTest {
                    
132	return handlerTest{h}
                    
424// Tests for https://golang.org/issue/900
                    
425func TestMuxRedirectLeadingSlashes(t *testing.T) {
                    
426	paths := []string{"//foo.txt", "///foo.txt", "/../../foo.txt"}
                    
448
                    
449func TestServerTimeouts(t *testing.T) {
                    
450	if runtime.GOOS == "plan9" {
                    
527// request) that will never happen.
                    
528func TestOnlyWriteTimeout(t *testing.T) {
                    
529	if runtime.GOOS == "plan9" {
                    
589// TestIdentityResponse verifies that a handler can unset
                    
590func TestIdentityResponse(t *testing.T) {
                    
591	defer afterTest(t)
                    
                
response_test.go git://github.com/axw/llgo.git | Go | 725 lines
                    
36
                    
37var respTests = []respTest{
                    
38	// Unchunked response without Content-Length.
                    
460
                    
461func TestReadResponse(t *testing.T) {
                    
462	for i, tt := range respTests {
                    
515		fatalf := func(format string, args ...interface{}) {
                    
516			args = append([]interface{}{test.chunked, test.compressed}, args...)
                    
517			t.Fatalf("on test chunked=%v, compressed=%v: "+format, args...)
                    
664
                    
665func TestResponseStatusStutter(t *testing.T) {
                    
666	r := &Response{
                    
678
                    
679func TestResponseContentLengthShortBody(t *testing.T) {
                    
680	const shortBody = "Short body, not 123 bytes."
                    
                
requestwrite_test.go git://github.com/axw/llgo.git | Go | 654 lines
                    
28
                    
29var reqWriteTests = []reqWriteTest{
                    
30	// HTTP/1.1 => chunked coding; no body; no trailer
                    
490
                    
491func TestRequestWrite(t *testing.T) {
                    
492	for i := range reqWriteTests {
                    
555
                    
556// TestRequestWriteClosesBody tests that Request.Write does close its request.Body.
                    
557// It also indirectly tests NewRequest and that it doesn't wrap an existing Closer
                    
558// inside a NopCloser, and that it serializes it correctly.
                    
559func TestRequestWriteClosesBody(t *testing.T) {
                    
560	rc := &closeChecker{Reader: strings.NewReader("my body")}
                    
602// TestRequestWriteError tests the Write err != nil checks in (*Request).write.
                    
603func TestRequestWriteError(t *testing.T) {
                    
604	failAfter, writeCount := 0, 0
                    
                
request_test.go git://github.com/axw/llgo.git | Go | 773 lines
                    
24
                    
25func TestQuery(t *testing.T) {
                    
26	req := &Request{Method: "GET"}
                    
32
                    
33func TestPostQuery(t *testing.T) {
                    
34	req, _ := NewRequest("POST", "http://www.google.com/search?q=foo&q=bar&both=x&prio=1&empty=not",
                    
230
                    
231func TestMultipartRequestAuto(t *testing.T) {
                    
232	// Test that FormValue and FormFile automatically invoke
                    
473
                    
474func TestParseBasicAuth(t *testing.T) {
                    
475	for _, tt := range parseBasicAuthTests {
                    
500
                    
501func TestRequestWriteBufferedWriter(t *testing.T) {
                    
502	got := []string{}
                    
                
fs_test.go git://github.com/axw/llgo.git | Go | 965 lines
                    
71
                    
72func TestServeFile(t *testing.T) {
                    
73	defer afterTest(t)
                    
184	{"/test/testdata", "/test/testdata/"},
                    
185	{"/test/testdata/file/", "/test/testdata/file"},
                    
186}
                    
276		if !strings.HasPrefix(s, dirListPrefix) || !strings.HasSuffix(s, dirListSuffix) {
                    
277			t.Errorf("test %q: listing dir, full output is %q, want prefix %q and suffix %q", test.name, s, dirListPrefix, dirListSuffix)
                    
278		}
                    
279		if trimmed := strings.TrimSuffix(strings.TrimPrefix(s, dirListPrefix), dirListSuffix); trimmed != test.escaped {
                    
280			t.Errorf("test %q: listing dir, filename escaped to %q, want %q", test.name, trimmed, test.escaped)
                    
281		}
                    
436
                    
437func TestServeFileWithContentEncoding(t *testing.T) {
                    
438	defer afterTest(t)
                    
                
client_test.go git://github.com/axw/llgo.git | Go | 1155 lines
                    
67
                    
68func TestClient(t *testing.T) {
                    
69	defer afterTest(t)
                    
152
                    
153func TestPostFormRequestFormat(t *testing.T) {
                    
154	defer afterTest(t)
                    
488
                    
489func TestStreamingGet(t *testing.T) {
                    
490	defer afterTest(t)
                    
539// don't send a TCP packet per line of the http request + body.
                    
540func TestClientWrites(t *testing.T) {
                    
541	defer afterTest(t)
                    
573
                    
574func TestClientInsecureTransport(t *testing.T) {
                    
575	defer afterTest(t)
                    
                
DBar.hx git://github.com/cambiata/cx.git | Haxe | 979 lines
                    
343			var dplexRectsAll = complex.rectsAll;
                    
344			testPB.rectsAll.push(complex.getRectsAllCopy());
                    
345			testPB.rectsHeadW.push(complex.rectHeads.width);
                    
364				var dplex = column.complexes[j];
                    
365				var testRectsAll = testPB.rectsAll[j];
                    
366				var testRectHeadW = testPB.rectsHeadW[j];
                    
369					var dplexRectsAll = dplex.rectsAll;
                    
370					var distanceX = Complex.dplexDistanceX(testRectsAll, testRectHeadW, dplexRectsAll);
                    
371					maxDistanceX = Math.max(maxDistanceX, distanceX);
                    
387				var dplex = column.complexes[j];
                    
388				var testRectsAll = testPB.rectsAll[j];
                    
389				var testRectHeadW = testPB.rectsHeadW[j];
                    
391				if (dplex != null) {
                    
392					testPB.rectsAll[j] = dplex.getRectsAllCopy();
                    
393					testPB.rectsHeadW[j] = dplex.rectHeads.width;
                    
                
timeout_test.go git://github.com/axw/llgo.git | Go | 1010 lines
                    
34
                    
35func TestDialTimeout(t *testing.T) {
                    
36	origTestHookDialChannel := testHookDialChannel
                    
36	origTestHookDialChannel := testHookDialChannel
                    
37	defer func() { testHookDialChannel = origTestHookDialChannel }()
                    
38	defer sw.Set(socktest.FilterConnect, nil)
                    
48	}()
                    
49	sw.Set(socktest.FilterClose, func(so *socktest.Status) (socktest.AfterFilter, error) {
                    
50		return nil, errTimedout
                    
61		default:
                    
62			sw.Set(socktest.FilterConnect, func(so *socktest.Status) (socktest.AfterFilter, error) {
                    
63				time.Sleep(tt.guard)
                    
501
                    
502func TestWriteTimeoutMustNotReturn(t *testing.T) {
                    
503	switch runtime.GOOS {
                    
                
DualWritesKeyspace.java git://github.com/Netflix/astyanax.git | Java | 529 lines
                    
201	@Override
                    
202	public OperationResult<Void> testOperation(final Operation<?, ?> operation) throws ConnectionException {
                    
203        return execDualKeyspaceOperation(new KeyspaceOperation<Void>() {
                    
205            public OperationResult<Void> exec(Keyspace ks) throws ConnectionException {
                    
206                return ks.testOperation(operation);
                    
207            }
                    
211	@Override
                    
212	public OperationResult<Void> testOperation(final Operation<?, ?> operation, RetryPolicy retry) throws ConnectionException {
                    
213        return execDualKeyspaceOperation(new KeyspaceOperation<Void>() {
                    
215            public OperationResult<Void> exec(Keyspace ks) throws ConnectionException {
                    
216                return ks.testOperation(operation);
                    
217            }
                    
                
BindsSubsystem.java git://github.com/MovingBlocks/Terasology.git | Java | 480 lines
                    
151        for (Name moduleId : moduleManager.getRegistry().getModuleIds()) {
                    
152            if (moduleManager.getRegistry().getLatestModuleVersion(moduleId).isCodeModule()) {
                    
153                ResolutionResult result = resolver.resolve(moduleId);
                    
                
gecop.e git://github.com/gobo-eiffel/gobo.git | Specman e | 625 lines
                    
200							create l_test_case.make (l_entry_fullname, l_test_dirname)
                    
201							l_test_case.set_test (l_test_name, agent l_test_case.compile_and_test (a_tested_eiffel_tool))
                    
202							l_test_case.set_variables (a_tester.variables)
                    
203							l_test_case.set_set_up_mutex (a_set_up_mutex)
                    
204							l_test_suite.put_test (l_test_case)
                    
205						end
                    
215
                    
216	run_tests (a_tester: TS_TESTER; a_aggregate: BOOLEAN; a_output_file: KI_TEXT_OUTPUT_STREAM)
                    
217			-- Run tests in `a_tester'.
                    
242					l_old_test_suite := a_tester.suite
                    
243					l_test_suite := {TS_TEST_SUITE_FACTORY}.new_test_suite (l_old_test_suite.name, l_old_test_suite.variables, l_thread_count)
                    
244					l_old_test_suite.add_test_cases_to_suite (l_test_suite)
                    
277						if not attached {TS_TEST_SUITE} l_tests.item then
                    
278							l_test_suite.put_test (l_tests.item)
                    
279						end
                    
                
eiffel_test_case.e git://github.com/gobo-eiffel/gobo.git | Specman e | 1187 lines
                    
40			a_program_dirname_not_empty: not a_program_dirname.is_empty
                    
41			a_test_dirname_not_void: a_test_dirname /= Void
                    
42			a_test_dirname_not_empty: not a_test_dirname.is_empty
                    
45			program_dirname := a_program_dirname
                    
46			testrun_dirname := a_test_dirname
                    
47		ensure
                    
48			program_dirname_set: program_dirname = a_program_dirname
                    
49			testrun_dirname_set: testrun_dirname = a_test_dirname
                    
50		end
                    
55			program_dirname := default_testrun_dirname
                    
56			testrun_dirname := default_testrun_dirname
                    
57			precursor
                    
61
                    
62	compile_and_test (a_tested_eiffel_tool: STRING)
                    
63			-- Compile and test with `a_tested_eiffel_tool'.
                    
                
CentralizedThreadLocalTest.java git://github.com/liferay/liferay-portal.git | Java | 657 lines
                    
17import com.liferay.portal.kernel.test.ReflectionTestUtil;
                    
18import com.liferay.portal.kernel.test.rule.AggregateTestRule;
                    
19import com.liferay.portal.kernel.test.rule.CodeCoverageAssertor;
                    
19import com.liferay.portal.kernel.test.rule.CodeCoverageAssertor;
                    
20import com.liferay.portal.test.rule.LiferayUnitTestRule;
                    
21
                    
44	@Rule
                    
45	public static final AggregateTestRule aggregateTestRule =
                    
46		new AggregateTestRule(
                    
108
                    
109		String testString = "test";
                    
110
                    
213	@Test
                    
214	public void testInitialValue() {
                    
215
                    
                
TreeUtils.hx git://github.com/cambiata/cx.git | Haxe | 1008 lines
                    
260		var test2sub = new Submenu();
                    
261		test2sub.appendChild(new NavlistLi('test2subA', 'linksub1.html'));
                    
262		test2sub.appendChild(new NavlistLi('test2subB', 'linksub2.html'));					
                    
265			{title: 'test', url:'/test' },
                    
266			{title: 'test2', url:'/test2', submenu: test2sub },
                    
267			{title: 'test3', url:'/test3' },
                    
385		test2sub.appendChild(new NavlistLi('test2subA', 'linksub1.html'));
                    
386		test2sub.appendChild(new NavlistLi('test2subB', 'linksub2.html'));					
                    
387		var sidemenuItems:Array<SidemenuItem> = 		
                    
389			{title: 'test', url:'/test' },
                    
390			{title: 'test2', url:'/test2', submenu: test2sub },
                    
391			{title: 'test3', url:'/test3' },
                    
397		
                    
398		var breadcrumbs = new Breadcrumbs(['test|/test', 'test2|/test2']);
                    
399		var content = new PageContent();	
                    
                
gec.e git://github.com/gobo-eiffel/gobo.git | Specman e | 945 lines
                    
25
                    
26	UC_SHARED_STRING_EQUALITY_TESTER
                    
27		export {NONE} all end
                    
                
ge_types.h git://github.com/gobo-eiffel/gobo.git | C Header | 544 lines
                    
203 */
                    
204#define GE_is_attached_type(a_type) EIF_TEST(((a_type).annotations & ATTACHED_FLAG) || GE_is_expanded_type_index((a_type).id))
                    
205#define GE_is_attached_encoded_type(a_type) GE_is_attached_type(GE_decoded_type(a_type))
                    
223 */
                    
224#define GE_is_special_type_index(a_type) EIF_TEST(GE_type_infos[a_type].flags & GE_TYPE_FLAG_SPECIAL)
                    
225#define GE_is_special_encoded_type(a_type) GE_is_special_type_index(GE_decoded_type(a_type).id)
                    
252 */
                    
253#define GE_is_tuple_type_index(a_type) EIF_TEST(GE_type_infos[a_type].flags & GE_TYPE_FLAG_TUPLE)
                    
254#define GE_is_tuple_encoded_type(a_type) GE_is_tuple_type_index(GE_decoded_type(a_type).id)
                    
259 */
                    
260#define GE_is_expanded_type_index(a_type) EIF_TEST(GE_type_infos[a_type].flags & GE_TYPE_FLAG_EXPANDED)
                    
261#define GE_is_expanded_encoded_type(a_type) GE_is_expanded_type_index(GE_decoded_type(a_type).id)
                    
266 */
                    
267#define GE_is_deferred_type_index(a_type) EIF_TEST(GE_type_infos[a_type].flags & GE_TYPE_FLAG_DEFERRED)
                    
268#define GE_is_deferred_encoded_type(a_type) GE_is_deferred_type_index(GE_decoded_type(a_type).id)
                    
                
UserJSONImplTest.java git://github.com/yusuke/twitter4j.git | Java | 101 lines
                    
20
                    
21import org.junit.jupiter.api.Test;
                    
22
                    
28
                    
29    @Test
                    
30    void testGetDescriptionURLEntities1() throws JSONException, TwitterException {
                    
30    void testGetDescriptionURLEntities1() throws JSONException, TwitterException {
                    
31        String rawJson = "{\"id\":219570417,\"id_str\":\"219570417\",\"name\":\"\\u3066\\u3059\\u3068\",\"screen_name\":\"gjmp9\",\"location\":\"\\u65e5\\u672c\",\"description\":\"&lt;test&gt; url: http:\\/\\/t.co\\/UcHD19ZC url2: http:\\/\\/t.co\\/dRuJ7wCm subaccount: @gjmp10 hashtag: #test\",\"url\":\"http:\\/\\/fdghj.com\",\"entities\":{\"url\":{\"urls\":[{\"url\":\"http:\\/\\/fdghj.com\",\"expanded_url\":null,\"indices\":[0,16]}]},\"description\":{\"urls\":[{\"url\":\"http:\\/\\/t.co\\/UcHD19ZC\",\"expanded_url\":\"http:\\/\\/test.com\\/\",\"display_url\":\"test.com\",\"indices\":[18,38]},{\"url\":\"http:\\/\\/t.co\\/dRuJ7wCm\",\"expanded_url\":\"http:\\/\\/longurl.com\\/abcdefghijklmnopqrstuvwxyz\",\"display_url\":\"longurl.com\\/abcdefghijklmn\\u2026\",\"indices\":[45,65]}]}},\"protected\":false,\"followers_count\":8,\"friends_count\":11,\"listed_count\":0,\"created_at\":\"Thu Nov 25 06:47:37 +0000 2010\",\"favourites_count\":1,\"utc_offset\":-36000,\"time_zone\":\"Hawaii\",\"geo_enabled\":false,\"verified\":false,\"statuses_count\":280,\"lang\":\"ja\",\"status\":{\"created_at\":\"Wed Dec 05 01:53:33 +0000 2012\",\"id\":276142234003468288,\"id_str\":\"276142234003468288\",\"text\":\"\\u307b\\u3052\\u307b\\u3052\",\"source\":\"\\u003ca href=\\\"http:\\/\\/jigtwi.jp\\/?p=1001\\\" rel=\\\"nofollow\\\"\\u003ejigtwi for Android\\u003c\\/a\\u003e\",\"truncated\":false,\"in_reply_to_status_id\":null,\"in_reply_to_status_id_str\":null,\"in_reply_to_user_id\":null,\"in_reply_to_user_id_str\":null,\"in_reply_to_screen_name\":null,\"geo\":null,\"coordinates\":null,\"place\":null,\"contributors\":null,\"retweet_count\":0,\"entities\":{\"hashtags\":[],\"urls\":[],\"user_mentions\":[]},\"favorited\":false,\"retweeted\":false},\"contributors_enabled\":false,\"is_translator\":false,\"profile_background_color\":\"CBC1E5\",\"profile_background_image_url\":\"http:\\/\\/a0.twimg.com\\/profile_background_images\\/722705453\\/321f2aba5dcbbc97ec0dd0bf9969cb48.jpeg\",\"profile_background_image_url_https\":\"https:\\/\\/si0.twimg.com\\/profile_background_images\\/722705453\\/321f2aba5dcbbc97ec0dd0bf9969cb48.jpeg\",\"profile_background_tile\":true,\"profile_image_url\":\"http:\\/\\/a0.twimg.com\\/profile_images\\/2607446059\\/bip392byfu5669roobg5_normal.png\",\"profile_image_url_https\":\"https:\\/\\/si0.twimg.com\\/profile_images\\/2607446059\\/bip392byfu5669roobg5_normal.png\",\"profile_link_color\":\"B40B43\",\"profile_sidebar_border_color\":\"FFFFFF\",\"profile_sidebar_fill_color\":\"E5507E\",\"profile_text_color\":\"362720\",\"profile_use_background_image\":true,\"default_profile\":false,\"default_profile_image\":false,\"following\":true,\"follow_request_sent\":false,\"notifications\":false}";
                    
32        JSONObject json = new JSONObject(rawJson);
                    
39        assertEquals("http://test.com/", descriptionUrlEntities[0].getExpandedURL());
                    
40        assertEquals("test.com", descriptionUrlEntities[0].getDisplayURL());
                    
41        assertEquals("http://t.co/UcHD19ZC", descriptionUrlEntities[0].getURL());
                    
52
                    
53        assertEquals("<test> url: http://t.co/UcHD19ZC url2: http://t.co/dRuJ7wCm subaccount: @gjmp10 hashtag: #test", user.getDescription());
                    
54    }
                    
                
ge_types.c git://github.com/gobo-eiffel/gobo.git | C | 670 lines
                    
128		l_flags = GE_type_infos[l_generic_parameter].flags;
                    
129		l_result = EIF_TEST((l_flags & GE_TYPE_FLAG_EXPANDED) && !(l_flags & GE_TYPE_FLAG_BASIC_MASK));
                    
130	}
                    
147		l_flags = GE_type_infos[l_generic_parameter].flags;
                    
148		l_result = EIF_TEST(!(l_flags & GE_TYPE_FLAG_EXPANDED));
                    
149	}
                    
167		l_flags = GE_type_infos[l_generic_parameter].flags;
                    
168		l_result = EIF_TEST(!(l_flags & GE_TYPE_FLAG_EXPANDED) || (l_flags & GE_TYPE_FLAG_BASIC_MASK));
                    
169	}
                    
325	} else if (l_flags_1 & GE_TYPE_FLAG_NONE) {
                    
326		return EIF_TEST(!(l_flags_2 & GE_TYPE_FLAG_EXPANDED));
                    
327	} else if (l_type_index_1 == l_type_index_2) {
                    
                
UnsyncBufferedReaderTest.java git://github.com/liferay/liferay-portal.git | Java | 575 lines
                    
17import com.liferay.portal.kernel.test.ReflectionTestUtil;
                    
18import com.liferay.portal.kernel.test.rule.AggregateTestRule;
                    
19import com.liferay.portal.kernel.test.rule.CodeCoverageAssertor;
                    
19import com.liferay.portal.kernel.test.rule.CodeCoverageAssertor;
                    
20import com.liferay.portal.test.rule.LiferayUnitTestRule;
                    
21
                    
40 */
                    
41public class UnsyncBufferedReaderTest extends BaseReaderTestCase {
                    
42
                    
44	@Rule
                    
45	public static final AggregateTestRule aggregateTestRule =
                    
46		new AggregateTestRule(
                    
140
                    
141	@Test
                    
142	public void testClose() throws Exception {
                    
                
TweetsResourcesTest.java git://github.com/yusuke/twitter4j.git | Java | 299 lines
                    
32 */
                    
33class TweetsResourcesTest extends TwitterTestBase {
                    
34
                    
37        Status status;
                    
38        status = TwitterObjectFactory.createStatus("{\"text\":\"\\\\u5e30%u5e30 &lt;%\\u007d& foobar &lt;&Cynthia&gt;\",\"contributors\":null,\"geo\":null,\"retweeted\":false,\"in_reply_to_screen_name\":null,\"truncated\":false,\"entities\":{\"urls\":[],\"hashtags\":[],\"user_mentions\":[]},\"in_reply_to_status_id_str\":null,\"id\":12029015787307008,\"in_reply_to_user_id_str\":null,\"source\":\"web\",\"favorited\":false,\"in_reply_to_status_id\":null,\"in_reply_to_user_id\":null,\"created_at\":\"Tue Dec 07 06:21:55 +0000 2010\",\"retweet_count\":0,\"id_str\":\"12029015787307008\",\"place\":null,\"user\":{\"location\":\"location:\",\"statuses_count\":13405,\"profile_background_tile\":false,\"lang\":\"en\",\"profile_link_color\":\"0000ff\",\"id\":6358482,\"following\":true,\"favourites_count\":2,\"protected\":false,\"profile_text_color\":\"000000\",\"contributors_enabled\":false,\"description\":\"Hi there, I do test a lot!new\",\"verified\":false,\"profile_sidebar_border_color\":\"87bc44\",\"name\":\"twit4j\",\"profile_background_color\":\"9ae4e8\",\"created_at\":\"Sun May 27 09:52:09 +0000 2007\",\"followers_count\":24,\"geo_enabled\":true,\"profile_background_image_url\":\"http://a3.twimg.com/profile_background_images/179009017/t4j-reverse.gif\",\"follow_request_sent\":false,\"url\":\"http://yusuke.homeip.net/twitter4j/\",\"utc_offset\":-32400,\"time_zone\":\"Alaska\",\"notifications\":false,\"friends_count\":4,\"profile_use_background_image\":true,\"profile_sidebar_fill_color\":\"e0ff92\",\"screen_name\":\"twit4j\",\"id_str\":\"6358482\",\"profile_image_url\":\"http://a3.twimg.com/profile_images/1184543043/t4j-reverse_normal.jpeg\",\"show_all_inline_media\":false,\"listed_count\":3},\"coordinates\":null}");
                    
39        assertEquals("\\u5e30%u5e30 <%}& foobar <&Cynthia>", status.getText());
                    
65        String dateStr = new java.util.Date().toString();
                    
66        String date = dateStr + "test mytweet @" + id2.screenName + " #twitter4jtest";
                    
67        Status status = twitter1.updateStatus(date);
                    
98        String dateStr3 = new java.util.Date().toString();
                    
99        String date3 = dateStr3 + "test http://t.co/VEDROet @" + id2.screenName + " #twitter4jtest";
                    
100        Status status3 = twitter1.updateStatus(date3);
                    
100        Status status3 = twitter1.updateStatus(date3);
                    
101        // since updateStatus is already tested, just checking if the returned status is non-null
                    
102        assertNotNull(TwitterObjectFactory.getRawJSON(status3));
                    
                
SerializerTest.java git://github.com/liferay/liferay-portal.git | Java | 1159 lines
                    
22import com.liferay.portal.kernel.test.ReflectionTestUtil;
                    
23import com.liferay.portal.kernel.test.rule.AggregateTestRule;
                    
24import com.liferay.portal.kernel.test.rule.CodeCoverageAssertor;
                    
25import com.liferay.portal.kernel.test.rule.NewEnv;
                    
26import com.liferay.portal.test.rule.LiferayUnitTestRule;
                    
27
                    
65	@Rule
                    
66	public static final AggregateTestRule aggregateTestRule =
                    
67		new AggregateTestRule(
                    
315	@NewEnv(type = NewEnv.Type.CLASSLOADER)
                    
316	@Test
                    
317	public void testDefendedClassInitialization() throws Exception {
                    
552
                    
553	@Test
                    
554	public void testWriteInt() {
                    
                
OutputStreamWriterTest.java git://github.com/liferay/liferay-portal.git | Java | 822 lines
                    
19import com.liferay.petra.string.StringPool;
                    
20import com.liferay.portal.kernel.test.ReflectionTestUtil;
                    
21import com.liferay.portal.kernel.test.rule.AggregateTestRule;
                    
22import com.liferay.portal.kernel.test.rule.CodeCoverageAssertor;
                    
23import com.liferay.portal.test.rule.LiferayUnitTestRule;
                    
24
                    
51	@Rule
                    
52	public static final AggregateTestRule aggregateTestRule =
                    
53		new AggregateTestRule(
                    
358	@Test
                    
359	public void testWriteString() throws IOException {
                    
360		_testWriteString(false);
                    
360		_testWriteString(false);
                    
361		_testWriteString(true);
                    
362	}
                    
                
DeserializerTest.java git://github.com/liferay/liferay-portal.git | Java | 746 lines
                    
20import com.liferay.petra.string.StringPool;
                    
21import com.liferay.portal.kernel.test.ReflectionTestUtil;
                    
22import com.liferay.portal.kernel.test.rule.AggregateTestRule;
                    
23import com.liferay.portal.kernel.test.rule.CodeCoverageAssertor;
                    
24import com.liferay.portal.test.rule.LiferayUnitTestRule;
                    
25
                    
48import org.junit.Rule;
                    
49import org.junit.Test;
                    
50
                    
53 */
                    
54public class DeserializerTest {
                    
55
                    
57	@Rule
                    
58	public static final AggregateTestRule aggregateTestRule =
                    
59		new AggregateTestRule(
                    
                
ListResourcesTest.java git://github.com/yusuke/twitter4j.git | Java | 341 lines
                    
28 */
                    
29class ListResourcesTest extends TwitterTestBase {
                    
30
                    
34        UserList userList;
                    
35        userList = prepareListTest();
                    
36        /*List Methods*/
                    
64        if (statuses.size() > 0) {
                    
65            assertEquals(statuses.get(0), TwitterObjectFactory.createStatus(TwitterObjectFactory.getRawJSON(statuses.get(0))));
                    
66        }
                    
169    @Disabled
                    
170    @Test
                    
171    void testRemoveListMembers() throws Exception {
                    
173        UserList userList;
                    
174        userList = prepareListTest();
                    
175        try {
                    
                
FriendsFollowersResourcesTest.java git://github.com/yusuke/twitter4j.git | Java | 300 lines
                    
26 */
                    
27class FriendsFollowersResourcesTest extends TwitterTestBase {
                    
28
                    
82
                    
83    @Test
                    
84    void testCreateDestroyFriend() throws Exception {
                    
151        followsOneWay.createFriendship(id1.screenName);
                    
152        TestUserInfo followsOneWayInfo = new TestUserInfo("followsOneWay");
                    
153        //  TESTING PRECONDITIONS:
                    
158
                    
159        // test second precondition
                    
160        assertNotNull(rel1);
                    
170
                    
171        // test second precondition
                    
172        assertNotNull(rel1);
                    
                
net.go git://github.com/axw/llgo.git | Go | 576 lines
                    
90// to build this binary, and whether cgo is available.
                    
91// conf.go mirrors these into conf for easier testing.
                    
92var (
                    
                
build.gradle git://github.com/SpringSource/spring-batch.git | Gradle | 953 lines
                    
147			resources {
                    
148				srcDirs = ['src/test/resources', 'src/test/java']
                    
149			}
                    
223
                    
224	test.dependsOn checkTestConfigs
                    
225
                    
321		testCompile "org.apache.derby:derby:$derbyVersion"
                    
322		testCompile "org.springframework:spring-test:$springVersion"
                    
323		testCompile "junit:junit:${junitVersion}"
                    
329		testCompile "javax.xml.bind:jaxb-api:$jaxbApiVersion"
                    
330		testCompile "org.springframework.kafka:spring-kafka-test:$springKafkaVersion"
                    
331		testCompile "org.assertj:assertj-core:$assertjVersion"
                    
399		if (dataNeo4jVersion?.startsWith('4.')) {
                    
400			tasks.withType(Test).matching { it.name =~ "springIoJdk.Test" }.all {
                    
401				exclude '**/Neo4jItemReaderTests.class'
                    
                
listen_test.go git://github.com/axw/llgo.git | Go | 685 lines
                    
58
                    
59// TestTCPListener tests both single and double listen to a test
                    
60// listener with same address family, same listening address and
                    
119
                    
120// TestUDPListener tests both single and double listen to a test
                    
121// listener with same address family, same listening address and
                    
215
                    
216// TestDualStackTCPListener tests both single and double listen
                    
217// to a test listener with various address families, different
                    
218// listening address and same port.
                    
219func TestDualStackTCPListener(t *testing.T) {
                    
220	switch runtime.GOOS {
                    
305// listening address and same port.
                    
306func TestDualStackUDPListener(t *testing.T) {
                    
307	switch runtime.GOOS {
                    
                
ip_test.go git://github.com/axw/llgo.git | Go | 542 lines
                    
38
                    
39func TestParseIP(t *testing.T) {
                    
40	for _, tt := range parseIPTests {
                    
44		if tt.in == "" {
                    
45			// Tested in TestMarshalEmptyIP below.
                    
46			continue
                    
141
                    
142func TestIPString(t *testing.T) {
                    
143	for _, tt := range ipStringTests {
                    
317
                    
318func TestCIDRMask(t *testing.T) {
                    
319	for _, tt := range cidrMaskTests {
                    
358
                    
359func TestNetworkNumberAndMask(t *testing.T) {
                    
360	for _, tt := range networkNumberAndMaskTests {
                    
                
UsersResources.java git://github.com/yusuke/twitter4j.git | Java | 435 lines
                    
40    /**
                    
41     * Returns an HTTP 200 OK response code and a representation of the requesting user if authentication was successful; returns a 401 status code and an error message if not.  Use this method to test if supplied user credentials are valid.
                    
42     * <br>This method calls https://api.twitter.com/1.1/account/verify_credentials.json
                    
                
DbreDatabaseListenerImpl.java git://github.com/SpringSource/spring-roo.git | Java | 918 lines
                    
35import org.springframework.roo.addon.layers.service.addon.ServiceOperations;
                    
36import org.springframework.roo.addon.test.addon.integration.IntegrationTestOperations;
                    
37import org.springframework.roo.classpath.PhysicalTypeCategory;
                    
82  private FileManager fileManager;
                    
83  private IntegrationTestOperations integrationTestOperations;
                    
84  private ProjectOperations projectOperations;
                    
                
NoticeableThreadPoolExecutorTest.java git://github.com/liferay/liferay-portal.git | Java | 756 lines
                    
18import com.liferay.petra.test.util.ThreadTestUtil;
                    
19import com.liferay.portal.kernel.test.ReflectionTestUtil;
                    
20import com.liferay.portal.kernel.test.rule.AggregateTestRule;
                    
21import com.liferay.portal.kernel.test.rule.CodeCoverageAssertor;
                    
22import com.liferay.portal.test.rule.LiferayUnitTestRule;
                    
23
                    
48	@Rule
                    
49	public static final AggregateTestRule aggregateTestRule =
                    
50		new AggregateTestRule(
                    
199
                    
200	@Test
                    
201	public void testRejectedByFullQueueAndExecuted()
                    
244
                    
245	@Test
                    
246	public void testRejectedByFullQueueAndInterruptted()
                    
                
ConcurrentMapperHashMapTest.java git://github.com/liferay/liferay-portal.git | Java | 1220 lines
                    
220			_concurrentMap.computeIfPresent(
                    
221				_testKey, (key, value) -> _testValue1));
                    
222
                    
343
                    
344		Assert.assertNull(_concurrentMap.put(_testKey, _testValue1));
                    
345
                    
371			entry,
                    
372			new AbstractMap.SimpleEntry<Key, Value>(_testKey, _testValue1));
                    
373
                    
549
                    
550		Assert.assertNull(_concurrentMap.put(_testKey, _testValue1));
                    
551
                    
554		Assert.assertSame(
                    
555			_testValue1, _concurrentMap.put(_testKey, _testValue1));
                    
556
                    
                
gec7.c git://github.com/gobo-eiffel/gobo.git | C | 41111 lines
                    
241
                    
242/* [detachable] ET_DYNAMIC_PUSH_TYPE_SET_BUILDER.check_unqualified_object_test_local_call_expression_validity */
                    
243void T70f422(GE_context* ac, T0* C, T0* a1, T0* a2, T0* a3)
                    
326
                    
327/* [detachable] ET_DYNAMIC_PUSH_TYPE_SET_BUILDER.check_object_test_local_parenthesis_call_validity */
                    
328void T70f468(GE_context* ac, T0* C, T0* a1, T0* a2, T0* a3)
                    
                
error_test.go git://github.com/axw/llgo.git | Go | 673 lines
                    
138	}
                    
139	sw.Set(socktest.FilterConnect, func(so *socktest.Status) (socktest.AfterFilter, error) {
                    
140		return nil, errOpNotSupported
                    
212
                    
213	origTestHookLookupIP := testHookLookupIP
                    
214	defer func() { testHookLookupIP = origTestHookLookupIP }()
                    
217	}
                    
218	sw.Set(socktest.FilterListen, func(so *socktest.Status) (socktest.AfterFilter, error) {
                    
219		return nil, errOpNotSupported
                    
257	origTestHookLookupIP := testHookLookupIP
                    
258	defer func() { testHookLookupIP = origTestHookLookupIP }()
                    
259	testHookLookupIP = func(fn func(string) ([]IPAddr, error), host string) ([]IPAddr, error) {
                    
606
                    
607func TestFileError(t *testing.T) {
                    
608	switch runtime.GOOS {
                    
                
AbstractComposite.java git://github.com/Netflix/astyanax.git | Java | 731 lines
                    
105            .put((byte) 'a', ComparatorType.ASCIITYPE.getTypeName())
                    
106            .put((byte) 'b', ComparatorType.BYTESTYPE.getTypeName())
                    
107            .put((byte) 'i', ComparatorType.INTEGERTYPE.getTypeName())
                    
309        }
                    
310        return ComparatorType.BYTESTYPE.getTypeName();
                    
311    }
                    
364            if (bb.hasRemaining()) {
                    
365                return ComparatorType.BYTESTYPE.getTypeName();
                    
366            }
                    
                
gec.h git://github.com/gobo-eiffel/gobo.git | C Header | 32825 lines
                    
233#define EIF_TRUE ((EIF_BOOLEAN)'\1')
                    
234#define EIF_TEST(x) ((x) ? EIF_TRUE : EIF_FALSE)
                    
235
                    
281#else
                    
282#define GE_IS_64_BITS EIF_TEST(sizeof(void*)==64)
                    
283#endif
                    
                
ObjectServiceTrackerMapTest.java git://github.com/liferay/liferay-portal.git | Java | 918 lines
                    
24import com.liferay.osgi.service.tracker.collections.map.ServiceTrackerMapFactory;
                    
25import com.liferay.portal.kernel.test.rule.AggregateTestRule;
                    
26import com.liferay.portal.test.rule.LiferayIntegrationTestRule;
                    
42import org.junit.Rule;
                    
43import org.junit.Test;
                    
44import org.junit.runner.RunWith;
                    
60	@Rule
                    
61	public static final AggregateTestRule aggregateTestRule =
                    
62		new LiferayIntegrationTestRule();
                    
272
                    
273	@Test
                    
274	public void testGetServiceWithCustomComparator() {
                    
481
                    
482	@Test
                    
483	public void testGetServiceWithNullClassAndFilter() {
                    
                
ListServiceTrackerMapTest.java git://github.com/liferay/liferay-portal.git | Java | 673 lines
                    
21import com.liferay.osgi.service.tracker.collections.map.ServiceTrackerMapListener;
                    
22import com.liferay.portal.kernel.test.rule.AggregateTestRule;
                    
23import com.liferay.portal.test.rule.LiferayIntegrationTestRule;
                    
57	@Rule
                    
58	public static final AggregateTestRule aggregateTestRule =
                    
59		new LiferayIntegrationTestRule();
                    
63		Bundle bundle = FrameworkUtil.getBundle(
                    
64			ListServiceTrackerMapTest.class);
                    
65
                    
213
                    
214	@Test
                    
215	public void testGetServicesWithDifferentKeys() {
                    
481	@Test
                    
482	public void testServiceTrackerMapListenerCannotModifyContent() {
                    
483		ServiceTrackerMapListener<String, TrackedOne, List<TrackedOne>>
                    
                
dial_test.go git://github.com/axw/llgo.git | Go | 715 lines
                    
28	}
                    
29	if testing.Short() || !*testExternal {
                    
30		t.Skip("avoid external network")
                    
119	default:
                    
120		sw.Set(socktest.FilterConnect, func(so *socktest.Status) (socktest.AfterFilter, error) {
                    
121			time.Sleep(2 * T)
                    
137	var attempts int
                    
138	sw.Set(socktest.FilterClose, func(so *socktest.Status) (socktest.AfterFilter, error) {
                    
139		mu.Lock()
                    
178	origTestHookLookupIP := testHookLookupIP
                    
179	defer func() { testHookLookupIP = origTestHookLookupIP }()
                    
180	testHookLookupIP = lookupLocalhost
                    
549
                    
550func TestDialerPartialDeadline(t *testing.T) {
                    
551	now := time.Date(2000, time.January, 1, 0, 0, 0, 0, time.UTC)
                    
                
FixSocketReaderTest.java git://github.com/peter-lawrey/Java-Chronicle.git | Java | 217 lines
                    
3import com.higherfrequencytrading.chronicle.Excerpt;
                    
4import com.higherfrequencytrading.chronicle.StopCharTesters;
                    
5import com.higherfrequencytrading.chronicle.impl.IndexedChronicle;
                    
7import org.jetbrains.annotations.NotNull;
                    
8import org.junit.Test;
                    
9
                    
18 */
                    
19public class FixSocketReaderTest {
                    
20    public static final String S = "8=FIX.4.4\u00019=82\u000135=A\u000134=1\u000149=MOCK_PROVIDER\u000152=20130424-13:12:27.169\u000156=PS_PROTO\u000198=0\u0001108=30\u0001141=Y\u000110=183\u0001" +
                    
                
multipart_test.go git://github.com/axw/llgo.git | Go | 686 lines
                    
19
                    
20func TestBoundaryLine(t *testing.T) {
                    
21	mr := NewReader(strings.NewReader(""), "myBoundary")
                    
51
                    
52func TestNameAccessors(t *testing.T) {
                    
53	tests := [...][3]string{
                    
121
                    
122func TestMultipartSlowInput(t *testing.T) {
                    
123	bodyReader := strings.NewReader(testMultipartBody("\r\n"))
                    
376// Test parsing an image attachment from gmail, which previously failed.
                    
377func TestNested(t *testing.T) {
                    
378	// nested-mime is the body part of a multipart/mixed email
                    
445
                    
446var parseTests = []parseTest{
                    
447	// Actual body from App Engine on a blob upload. The final part (the
                    
                
MapWrapperTest.java git://github.com/peter-lawrey/Java-Chronicle.git | Java | 444 lines
                    
23import com.higherfrequencytrading.chronicle.tools.ChronicleTools;
                    
24import org.junit.Test;
                    
25
                    
37 */
                    
38public class MapWrapperTest {
                    
39    static final String TMP = System.getProperty("java.io.tmpdir");
                    
40
                    
41    @Test
                    
42    public void testMethods() throws IOException {
                    
140
                    
141    @Test
                    
142    public void testMapPerformance() throws IOException {
                    
183
                    
184    @Test
                    
185    public void testOverTcp() throws IOException, InterruptedException {
                    
                
OggReader.java git://github.com/MovingBlocks/Terasology.git | Java | 537 lines
                    
168            if (!eos) {
                    
169                int bytesToCopy = Math.min(bytesRemaining, convbufferSize - convbufferOff);
                    
170                System.arraycopy(convbuffer, convbufferOff, b, offset, bytesToCopy);
                    
170                System.arraycopy(convbuffer, convbufferOff, b, offset, bytesToCopy);
                    
171                convbufferOff += bytesToCopy;
                    
172                bytesRead += bytesToCopy;
                    
172                bytesRead += bytesToCopy;
                    
173                bytesRemaining -= bytesToCopy;
                    
174                offset += bytesToCopy;
                    
198            if (!eos) {
                    
199                int bytesToCopy = Math.min(bytesRemaining, convbufferSize - convbufferOff);
                    
200                b.put(convbuffer, convbufferOff, bytesToCopy);
                    
200                b.put(convbuffer, convbufferOff, bytesToCopy);
                    
201                convbufferOff += bytesToCopy;
                    
202                bytesRead += bytesToCopy;
                    
                
WrappedExcerpt.java git://github.com/peter-lawrey/Java-Chronicle.git | Java | 746 lines
                    
150    @NotNull
                    
151    public String parseUTF(@NotNull StopCharTester tester) {
                    
152        return excerpt.parseUTF(tester);
                    
154
                    
155    public void parseUTF(@NotNull Appendable builder, @NotNull StopCharTester tester) {
                    
156        excerpt.parseUTF(builder, tester);
                    
393    @NotNull
                    
394    public ByteStringAppender append(Enum value) {
                    
395        excerpt.append(value);
                    
405    @NotNull
                    
406    public ByteStringAppender append(@NotNull byte[] str, int offset, int len) {
                    
407        excerpt.append(str, offset, len);
                    
499
                    
500    public <E> E parseEnum(@NotNull Class<E> aClass, @NotNull StopCharTester tester) {
                    
501        return excerpt.parseEnum(aClass, tester);
                    
                
geant_fileset.e git://github.com/gobo-eiffel/gobo.git | Specman e | 678 lines
                    
32		local
                    
33			a_tester: UC_STRING_EQUALITY_TESTER
                    
34		do
                    
38			create a_tester
                    
39			single_includes.set_equality_tester (a_tester)
                    
40			create {DS_HASH_SET [STRING]} single_excludes.make (20)
                    
40			create {DS_HASH_SET [STRING]} single_excludes.make (20)
                    
41			single_excludes.set_equality_tester (a_tester)
                    
42			set_filename_variable_name ("fs.filename")
                    
                
cmath_test.go git://github.com/axw/llgo.git | Go | 866 lines
                    
8	"math"
                    
9	"testing"
                    
10)
                    
                
AbstractExcerpt.java git://github.com/peter-lawrey/Java-Chronicle.git | Java | 2145 lines
                    
18
                    
19import com.higherfrequencytrading.chronicle.ByteStringAppender;
                    
20import com.higherfrequencytrading.chronicle.EnumeratedMarshaller;
                    
430    @Override
                    
431    public String parseUTF(@NotNull StopCharTester tester) {
                    
432        StringBuilder sb = acquireUtfReader();
                    
437    @Override
                    
438    public void parseUTF(@NotNull Appendable builder, @NotNull StopCharTester tester) {
                    
439        try {
                    
445
                    
446    private void readUTF0(@NotNull Appendable appendable, @NotNull StopCharTester tester) throws IOException {
                    
447        while (remaining() > 0) {
                    
462
                    
463    private void readUTF1(@NotNull Appendable appendable, @NotNull StopCharTester tester) throws IOException {
                    
464        do {
                    
                
rat_test.go git://github.com/axw/llgo.git | Go | 736 lines
                    
214
                    
215		arg = ratBinArg{test.sum, test.y, test.x}
                    
216		testRatBin(t, i, "Sub symmetric", (*Rat).Sub, arg)
                    
217
                    
218		arg = ratBinArg{test.x, test.y, test.prod}
                    
219		testRatBin(t, i, "Mul", (*Rat).Mul, arg)
                    
220
                    
221		arg = ratBinArg{test.y, test.x, test.prod}
                    
222		testRatBin(t, i, "Mul symmetric", (*Rat).Mul, arg)
                    
224		if test.x != "0" {
                    
225			arg = ratBinArg{test.prod, test.x, test.y}
                    
226			testRatBin(t, i, "Quo", (*Rat).Quo, arg)
                    
229		if test.y != "0" {
                    
230			arg = ratBinArg{test.prod, test.y, test.x}
                    
231			testRatBin(t, i, "Quo symmetric", (*Rat).Quo, arg)
                    
                
natconv_test.go git://github.com/axw/llgo.git | Go | 425 lines
                    
9	"strings"
                    
10	"testing"
                    
11)
                    
58
                    
59func TestString(t *testing.T) {
                    
60	// test invalid character set explicitly
                    
145
                    
146func TestScanBase(t *testing.T) {
                    
147	for _, a := range natScanTests {
                    
232// Test case for BenchmarkScanPi.
                    
233func TestScanPi(t *testing.T) {
                    
234	var x nat
                    
243
                    
244func TestScanPiParallel(t *testing.T) {
                    
245	const n = 2
                    
                
nat.go git://github.com/axw/llgo.git | Go | 1274 lines
                    
593			x1, x2 := mulWW(qhat, v[n-2])
                    
594			// test if q̂v_{n-2} > br̂ + u_{j+n-2}
                    
595			for greaterThan(x1, x2, rhat, u[j+n-2]) {
                    
598				rhat += v[n-1]
                    
599				// v[n-1] >= 0, so this tests for overflow.
                    
600				if rhat < prevRhat {
                    
                
HTMLEntity.java git://github.com/yusuke/twitter4j.git | Java | 469 lines
                    
126		 * entity references but also adjust the twitter code point based
                    
127		 * indexes with Java standard character indexes. See: HTMLEntityTest.
                    
128		 * testUnescapeAndSlideEntityIncdicesWithSurrogateCodePoints
                    
                
int_test.go git://github.com/axw/llgo.git | Go | 1540 lines
                    
72
                    
73func TestAbsZ(t *testing.T) {
                    
74	var zero Int
                    
88
                    
89func testFunZZ(t *testing.T, msg string, f funZZ, a argZZ) {
                    
90	var z Int
                    
247	} {
                    
248		if got := z.Binomial(test.n, test.k).String(); got != test.want {
                    
249			t.Errorf("Binomial(%d, %d) = %s; want %s", test.n, test.k, got, test.want)
                    
444
                    
445	for i, test := range quoTests {
                    
446		x, _ := new(Int).SetString(test.x, 10)
                    
459
                    
460func TestQuoStepD6(t *testing.T) {
                    
461	// See Knuth, Volume 2, section 4.3.1, exercise 21. This code exercises
                    
                
int.go git://github.com/axw/llgo.git | Go | 968 lines
                    
430
                    
431// GCD sets z to the greatest common divisor of a and b, which both must
                    
432// be > 0, and returns z.
                    
492
                    
493// binaryGCD sets z to the greatest common divisor of a and b, which both must
                    
494// be > 0, and returns z.
                    
552
                    
553// ProbablyPrime performs n Miller-Rabin tests to check whether x is prime.
                    
554// If it returns true, x is prime with probability 1 - 1/4^n.
                    
                
floatconv_test.go git://github.com/axw/llgo.git | Go | 573 lines
                    
136		if x.Cmp(want) != 0 {
                    
137			t.Errorf("%s: got %s (%v); want %v", test.s, &x, f, test.x)
                    
138		}
                    
303		// verify that Float format matches strconv format
                    
304		want := strconv.FormatFloat(test.x, test.format, test.prec, 64)
                    
305		if got != want {
                    
420		// as in 0p-1074 which makes no sense to emulate here)
                    
421		if test.prec == 53 && test.format != 'p' && f.Sign() != 0 {
                    
422			f64, acc := f.Float64()
                    
434
                    
435func TestFloatFormat(t *testing.T) {
                    
436	for _, test := range []struct {
                    
463
                    
464		// from fmt/fmt_test.go: old test/fmt_test.go
                    
465		{"%e", 1.0, "1.000000e+00"},
                    
                
MaxRectsBinPack.hx git://github.com/AxGord/Pony.git | Haxe | 502 lines
                    
424	private function splitFreeNode(freeNode: Rectangle, usedNode: Rectangle): Bool {
                    
425		// Test with SAT if the Rectangles even Intersect.
                    
426		if (usedNode.x >= freeNode.x + freeNode.width
                    
                
float_test.go git://github.com/axw/llgo.git | Go | 1694 lines
                    
80		z := make(test.z)
                    
81		test.op(z, make(test.x), make(test.y))
                    
82		got := 0
                    
86		if got != test.want {
                    
87			t.Errorf("%d %c %d = %d; want %d", test.x, test.opname, test.y, got, test.want)
                    
88		}
                    
137		if got, acc := x.String(), x.Acc(); got != test.want || acc != test.acc {
                    
138			t.Errorf("%s.SetPrec(%d) = %s (%s); want %s (%s)", test.x, test.prec, got, acc, test.want, test.acc)
                    
139		}
                    
225		if !alike(m, mant) || e != test.exp {
                    
226			t.Errorf("%s.MantExp() = %s, %d; want %s, %d", test.x, m.Text('g', 10), e, test.mant, test.exp)
                    
227		}
                    
268		if !alike(&z, want) {
                    
269			t.Errorf("SetMantExp(%s, %d) = %s; want %s", test.frac, test.exp, z.Text('g', 10), test.z)
                    
270		}
                    
                
float.go git://github.com/axw/llgo.git | Go | 1693 lines
                    
451	// make rounding decision
                    
452	// TODO(gri) This can be simplified (see Bits.round in bits_test.go).
                    
453	switch mode {
                    
                
geant_target.e git://github.com/gobo-eiffel/gobo.git | Specman e | 719 lines
                    
32			a_xml_element: XM_ELEMENT
                    
33			a_tester: UC_STRING_EQUALITY_TESTER
                    
34			a_obsolete_element: XM_ELEMENT
                    
67			create a_tester
                    
68			a_exports.set_equality_tester (a_tester)
                    
69			set_exports (a_exports)
                    
                
ide.gradle git://github.com/MovingBlocks/Terasology.git | Gradle | 631 lines
                    
17                entry(key: 'check-nonjava-files', value: false)
                    
18                entry(key: 'check-test-classes', value: true)
                    
19                entry(key: 'location-0',
                    
247
                    
248        // Run config for a second client in its own data dir (for easy multiplayer testing)
                    
249        runManager.append(new XmlParser().parseText('''
                    
                
geant_project.e git://github.com/gobo-eiffel/gobo.git | Specman e | 669 lines
                    
42		local
                    
43			a_tester: UC_STRING_EQUALITY_TESTER
                    
44		do
                    
50			create a_tester
                    
51			selected_targets.set_key_equality_tester (a_tester)
                    
52
                    
                
vmx.c git://github.com/mirrors/linux.git | C | 539 lines
                    
2/*
                    
3 * tools/testing/selftests/kvm/lib/x86_64/vmx.c
                    
4 *
                    
7
                    
8#include "test_util.h"
                    
9#include "kvm_util.h"
                    
57	/* KVM should return supported EVMCS version range */
                    
58	TEST_ASSERT(((evmcs_ver >> 8) >= (evmcs_ver & 0xff)) &&
                    
59		    (evmcs_ver & 0xff) > 0,
                    
65
                    
66/* Allocate memory regions for nested VMX tests.
                    
67 *
                    
397
                    
398	TEST_ASSERT(vm->mode == VM_MODE_PXXV48_4K, "Attempt to use "
                    
399		    "unknown or unsupported guest mode, mode: 0x%x", vm->mode);
                    
                
build.gradle git://github.com/mozilla/rhino.git | Gradle | 473 lines
                    
78
                    
79    jacoco.excludes = ['**/testsrc_tests_ecma_3_RegExp_perlstress*']
                    
80
                    
81    systemProperty 'java.awt.headless', 'true'
                    
82    systemProperty 'mozilla.js.tests', 'testsrc/tests'
                    
83    systemProperty 'mozilla.js.tests.timeout', 60000
                    
94    if (System.getProperty('updateTest262properties') != null) {
                    
95        systemProperty 'updateTest262properties', System.getProperty('updateTest262properties')
                    
96    }
                    
98    testLogging.showStandardStreams = true
                    
99    // Many tests do not clean up contexts properly. This makes the tests much
                    
100    // more resilient at the expense of performance.
                    
144    module {
                    
145        excludeDirs += file('testsrc/tests/src')
                    
146        excludeDirs += file('buildGradle')
                    
                
RELEASE-NOTES.md git://github.com/mozilla/rhino.git | Markdown | 871 lines
                    
63*     style: code style
                    
64*     test: string test with hex code instead of literal
                    
65*     remove unused StringBuilder
                    
65*     remove unused StringBuilder
                    
66*     fix tests in test262/built-ins/String/fromCodePoint/*
                    
67
                    
182*     Private static method ScriptRuntime.enumInitOrder(Context,IdEnumeration) no longer expects given IdEnumeration's property obj to be of type ScriptableObject specifically, only of type SymbolScriptable.
                    
183*     Added testclass IterableTest to test iterable implementations, currently with one testcase for a host object, specifically one that uses Array Iterator.
                    
184*     Added more tests to IterableTest.
                    
306*     fix the isSymbol detection to no longer detect the prototype as symbol
                    
307*     we have many more 262 tests passing already - i think we have to use as many tests as possible to check our quality
                    
308*     and some more; now we are at 51093
                    
308*     and some more; now we are at 51093
                    
309*     Use as many test262 tests as possible to check our quality
                    
310*     implement missing Math functions
                    
                
Sqlite.groovy git://github.com/jericks/geoscript-groovy.git | Groovy | 467 lines
                    
224            sql.execute 'create table if not exists geometry_columns (f_table_name VARCHAR, f_geometry_column VARCHAR, geometry_type INT, coord_dimension INT, srid INT, geometry_format VARCHAR)'
                    
225            sql.execute 'create table if not exists spatial_ref_sys (srid INTEGER, auth_name TEXT, auth_srid TEXT, srtext TEST)'
                    
226        }
                    
                
evmcs.h git://github.com/mirrors/linux.git | C Header | 1102 lines
                    
2/*
                    
3 * tools/testing/selftests/kvm/include/vmx.h
                    
4 *
                    
8
                    
9#ifndef SELFTEST_KVM_EVMCS_H
                    
10#define SELFTEST_KVM_EVMCS_H
                    
                
all_test.go git://github.com/axw/llgo.git | Go | 3072 lines
                    
4
                    
5package math_test
                    
6
                    
9	. "math"
                    
10	"testing"
                    
11)
                    
                
io.go git://github.com/axw/llgo.git | Go | 521 lines
                    
270
                    
271// stringWriter is the interface that wraps the WriteString method.
                    
272type stringWriter interface {
                    
272type stringWriter interface {
                    
273	WriteString(s string) (n int, err error)
                    
274}
                    
275
                    
276// WriteString writes the contents of the string s to w, which accepts a slice of bytes.
                    
277// If w implements a WriteString method, it is invoked directly.
                    
277// If w implements a WriteString method, it is invoked directly.
                    
278func WriteString(w Writer, s string) (n int, err error) {
                    
279	if sw, ok := w.(stringWriter); ok {
                    
279	if sw, ok := w.(stringWriter); ok {
                    
280		return sw.WriteString(s)
                    
281	}
                    
                
registry_test.go git://github.com/axw/llgo.git | Go | 678 lines
                    
229
                    
230func testErrUnexpectedType(t *testing.T, test ValueTest, gottype uint32, err error) {
                    
231	if err == nil {
                    
244
                    
245func testGetStringValue(t *testing.T, k registry.Key, test ValueTest) {
                    
246	got, gottype, err := k.GetStringValue(test.Name)
                    
267
                    
268func testGetIntegerValue(t *testing.T, k registry.Key, test ValueTest) {
                    
269	got, gottype, err := k.GetIntegerValue(test.Name)
                    
283
                    
284func testGetBinaryValue(t *testing.T, k registry.Key, test ValueTest) {
                    
285	got, gottype, err := k.GetBinaryValue(test.Name)
                    
299
                    
300func testGetStringsValue(t *testing.T, k registry.Key, test ValueTest) {
                    
301	got, gottype, err := k.GetStringsValue(test.Name)
                    
                
edit_page.jsp git://github.com/liferay/liferay-portal.git | JavaServer Pages | 429 lines
                    
120
                    
121<c:if test="<%= portletTitleBasedNavigation && (wikiPage != null) && !wikiPage.isNew() %>">
                    
122	<liferay-frontend:info-bar>
                    
143
                    
144		<c:if test="<%= wikiPage != null %>">
                    
145			<aui:input name="version" type="hidden" value="<%= wikiPage.getVersion() %>" />
                    
147
                    
148		<c:if test="<%= templatePage != null %>">
                    
149			<aui:input name="templateNodeId" type="hidden" value="<%= String.valueOf(templateNodeId) %>" />
                    
164		<c:choose>
                    
165			<c:when test="<%= !editable %>">
                    
166				<c:if test="<%= (wikiPage == null) || wikiPage.isNew() %>">
                    
173
                    
174				<c:if test="<%= (wikiPage != null) && !wikiPage.isApproved() %>">
                    
175					<div class="alert alert-info">
                    
                
epoll_wakeup_test.c git://github.com/mirrors/linux.git | C | 3285 lines
                    
11#include <sys/eventfd.h>
                    
12#include "../../kselftest_harness.h"
                    
13
                    
147 */
                    
148TEST(epoll1)
                    
149{
                    
178 */
                    
179TEST(epoll2)
                    
180{
                    
209 */
                    
210TEST(epoll3)
                    
211{
                    
247 */
                    
248TEST(epoll4)
                    
249{
                    
                
reader.go git://github.com/axw/llgo.git | Go | 802 lines
                    
150	// Move the last 2 bytes to the start of the buffer, in case we need
                    
151	// to call unreadByteStuffedByte.
                    
152	if d.bytes.j > 2 {
                    
165
                    
166// unreadByteStuffedByte undoes the most recent readByteStuffedByte call,
                    
167// giving a byte of data back from d.bits to d.bytes. The Huffman look-up table
                    
170// can happen when expecting to read a 0xff 0x00 byte-stuffed byte.
                    
171func (d *decoder) unreadByteStuffedByte() {
                    
172	d.bytes.i -= d.bytes.nUnreadable
                    
194
                    
195// errMissingFF00 means that readByteStuffedByte encountered an 0xff byte (a
                    
196// marker byte) that wasn't the expected byte-stuffed sequence 0xff, 0x00.
                    
198
                    
199// readByteStuffedByte is like readByte but is for byte-stuffed Huffman data.
                    
200func (d *decoder) readByteStuffedByte() (x byte, err error) {
                    
                
draw_test.go git://github.com/axw/llgo.git | Go | 469 lines
                    
246
                    
247func TestDraw(t *testing.T) {
                    
248	rr := []image.Rectangle{
                    
263			// Draw the (src, mask, op) onto a copy of dst using a slow but obviously correct implementation.
                    
264			golden := makeGolden(dst, image.Rect(0, 0, 16, 16), test.src, image.ZP, test.mask, image.ZP, test.op)
                    
265			b := dst.Bounds()
                    
270			// Draw the same combination onto the actual dst using the optimized DrawMask implementation.
                    
271			DrawMask(dst, image.Rect(0, 0, 16, 16), test.src, image.ZP, test.mask, image.ZP, test.op)
                    
272			if image.Pt(8, 8).In(r) {
                    
275				if !eq(dst.At(8, 8), test.expected) {
                    
276					t.Errorf("draw %v %s: at (8, 8) %v versus %v", r, test.desc, dst.At(8, 8), test.expected)
                    
277					continue
                    
292
                    
293func TestDrawOverlap(t *testing.T) {
                    
294	for _, op := range []Op{Over, Src} {
                    
                
main.js git://github.com/AxGord/Pony.git | JavaScript | 2649 lines
                    
203		if(Main.testCount % 4 != 0) throw new js__$Boot_HaxeError("Wrong test count");
                    
204		pony_tests_AsyncTests.init(Main.testCount);
                    
205		Main.firstTest();
                    
244		}
                    
245		pony_tests_AsyncTests.wait(new IntIterator(Main.blockCount,Main.testCount),function() {
                    
246			server1.destroy();
                    
262		var b = pony_Tools.readStr(bi);
                    
263		pony_tests_AsyncTests.assertList.push({ a : "hello user", b : b, pos : { fileName : "Main.hx", lineNumber : 92, className : "Main", methodName : "createServer"}});
                    
264		pony_tests_AsyncTests.setFlag(Main.partCount + i,{ fileName : "Main.hx", lineNumber : 93, className : "Main", methodName : "createServer"});
                    
271	var listener = { once : false, listener : pony_events_Listener2Type.LFunction1(function(s) {
                    
272		pony_tests_AsyncTests.assertList.push({ a : s, b : "hi world", pos : { fileName : "Main.hx", lineNumber : 102, className : "Main", methodName : "createClient"}});
                    
273		var bo = new haxe_io_BytesOutput();
                    
277		client.send(bo);
                    
278		pony_tests_AsyncTests.setFlag(i,{ fileName : "Main.hx", lineNumber : 107, className : "Main", methodName : "createClient"});
                    
279		client.destroy();
                    
                
Server.js git://github.com/AxGord/Pony.git | JavaScript | 4365 lines
                    
129		bo.writeInt32("Hello man!".length);
                    
130		bo.writeString("Hello man!");
                    
131		cl.send(bo);
                    
                
escape_test.go git://github.com/axw/llgo.git | Go | 1756 lines
                    
12	"strings"
                    
13	"testing"
                    
14	"text/template"
                    
30
                    
31func TestEscape(t *testing.T) {
                    
32	data := struct {
                    
55
                    
56	tests := []struct {
                    
57		name   string
                    
157			"nonHierURL",
                    
158			`<a href={{"mailto:Muhammed \"The Greatest\" Ali <m.ali@example.com>"}}>`,
                    
159			`<a href=mailto:Muhammed%20%22The%20Greatest%22%20Ali%20%3cm.ali@example.com%3e>`,
                    
243			"jsRe",
                    
244			`<button onclick='alert(/{{"foo+bar"}}/.test(""))'>`,
                    
245			`<button onclick='alert(/foo\x2bbar/.test(""))'>`,
                    
                
test.js git://github.com/sledorze/monax.git | JavaScript | 710 lines
                    
60			return $r;
                    
61		}(this)),{ fileName : "MonadTest.hx", lineNumber : 50, className : "MonadTest", methodName : "compilationTest"});
                    
62		var res2 = Array_Monad.flatMap([0,1,2],function(a) {
                    
75		}
                    
76		massive.munit.Assert.isTrue(equals,{ fileName : "MonadTest.hx", lineNumber : 72, className : "MonadTest", methodName : "compilationTest"});
                    
77		var res3 = (ST_Monad.flatMap(ST_Monad.gets(),function(passedState) {
                    
145		getLength(function(err,res) {
                    
146			massive.munit.Assert.areEqual(2,res,{ fileName : "NodeJsMonadTest.hx", lineNumber : 47, className : "NodeJsMonadTest", methodName : "compilationTest"});
                    
147		});
                    
148		getLength(function(err,res) {
                    
149			massive.munit.Assert.areEqual(2,res,{ fileName : "NodeJsMonadTest.hx", lineNumber : 48, className : "NodeJsMonadTest", methodName : "compilationTest"});
                    
150		});
                    
150		});
                    
151		massive.munit.Assert.areEqual(2,DB.nbCalls,{ fileName : "NodeJsMonadTest.hx", lineNumber : 49, className : "NodeJsMonadTest", methodName : "compilationTest"});
                    
152	}
                    
                
etude.asm git://github.com/shepheb/hork.git | Assembly | 2086 lines
                    
136  7c5:  f1 7f 02                SET_TEXT_STYLE  BOLDFACE
                    
137  7c8:  b2 ...                  PRINT           "Test of emphasized (bold)
                    
138text."
                    
149  813:  f1 7f 01                SET_TEXT_STYLE  REVERSE
                    
150  816:  b2 ...                  PRINT           "Test of reverse-video text."
                    
151  82b:  f1 7f 00                SET_TEXT_STYLE  ROMAN
                    
171  883:  f1 7f 04                SET_TEXT_STYLE  EMPHASIS
                    
172  886:  b2 ...                  PRINT           "Test of bold, italic text."
                    
173  89b:  f1 7f 00                SET_TEXT_STYLE  ROMAN
                    
176  8a2:  f1 7f 01                SET_TEXT_STYLE  REVERSE
                    
177  8a5:  b2 ...                  PRINT           "Test of bold, reverse text."
                    
178  8ba:  f1 7f 00                SET_TEXT_STYLE  ROMAN
                    
181  8c1:  f1 7f 01                SET_TEXT_STYLE  REVERSE
                    
182  8c4:  b2 ...                  PRINT           "Test of italic, reverse text."
                    
183  8db:  f1 7f 00                SET_TEXT_STYLE  ROMAN
                    
                
stmt.go git://github.com/axw/llgo.git | Go | 744 lines
                    
134func assignOp(op token.Token) token.Token {
                    
135	// token_test.go verifies the token ordering this function relies on
                    
136	if token.ADD_ASSIGN <= op && op <= token.AND_NOT_ASSIGN {
                    
                
mt9v113.c git://github.com/CyanogenMod/lge-kernel-sniper.git | C | 2437 lines
                    
423  {
                    
424    // _lkh test
                    
425    if(list->reg == 0xFFFE)
                    
                
builtins.go git://github.com/axw/llgo.git | Go | 627 lines
                    
538		// The result of assert is the value of pred if there is no error.
                    
539		// Note: assert is only available in self-test mode.
                    
540		if x.mode != constant_ || !isBoolean(x.typ) {
                    
557		// of the first argument.
                    
558		// Note: trace is only available in self-test mode.
                    
559		// (no argument evaluated yet)
                    
571		}
                    
572		// trace is only available in test mode - no need to record signature
                    
573
                    
                
api_test.go git://github.com/axw/llgo.git | Go | 1044 lines
                    
45
                    
46func TestValuesInfo(t *testing.T) {
                    
47	var tests = []struct {
                    
151
                    
152func TestTypesInfo(t *testing.T) {
                    
153	var tests = []struct {
                    
237
                    
238	for _, test := range tests {
                    
239		info := Info{Types: make(map[ast.Expr]TypeAndValue)}
                    
288
                    
289func TestPredicatesInfo(t *testing.T) {
                    
290	testenv.MustHaveGoBuild(t)
                    
374
                    
375func TestScopesInfo(t *testing.T) {
                    
376	testenv.MustHaveGoBuild(t)
                    
                
xm_xslt_test_variables.e git://github.com/gobo-eiffel/gobo.git | Specman e | 965 lines
                    
4
                    
5		"Test the XSLT variables and parameters"
                    
6
                    
6
                    
7	library: "Gobo Eiffel XSLT test suite"
                    
8	copyright: "Copyright (c) 2005-2018, Colin Adams and others"
                    
12
                    
13class XM_XSLT_TEST_VARIABLES
                    
14
                    
16
                    
17	TS_TEST_CASE
                    
18
                    
34
                    
35feature -- Test
                    
36
                    
                
scanner_test.go git://github.com/axw/llgo.git | Go | 810 lines
                    
220// Verify that calling Scan() provides the correct results.
                    
221func TestScan(t *testing.T) {
                    
222	whitespace_linecount := newlineCount(whitespace)
                    
468
                    
469func TestSemis(t *testing.T) {
                    
470	for _, line := range lines {
                    
515// Verify that comments of the form "//line filename:line" are interpreted correctly.
                    
516func TestLineComments(t *testing.T) {
                    
517	segs := segments
                    
550// Verify that initializing the same scanner more than once works correctly.
                    
551func TestInit(t *testing.T) {
                    
552	var s Scanner
                    
584
                    
585func TestStdErrorHander(t *testing.T) {
                    
586	const src = "@\n" + // illegal character, cause an error
                    
                
scanner.go git://github.com/axw/llgo.git | Go | 761 lines
                    
94	ScanComments    Mode = 1 << iota // return comments as COMMENT tokens
                    
95	dontInsertSemis                  // do not automatically insert semicolons - for testing only
                    
96)
                    
                
xm_xslt_test_stylesheet_builder.e git://github.com/gobo-eiffel/gobo.git | Specman e | 435 lines
                    
4
                    
5		"Test building XSLT stylesheet tree"
                    
6
                    
6
                    
7	library: "Gobo Eiffel XSLT test suite"
                    
8	copyright: "Copyright (c) 2004-2018, Colin Adams and others"
                    
12
                    
13class XM_XSLT_TEST_STYLESHEET_BUILDER
                    
14
                    
16
                    
17	TS_TEST_CASE
                    
18
                    
36
                    
37feature -- Test
                    
38
                    
                
printer.go git://github.com/axw/llgo.git | Go | 1296 lines
                    
74	out     token.Position // current position in output space
                    
75	last    token.Position // value of pos after calling writeString
                    
76	linePtr *int           // if set, record out.Line for the next token in *linePtr
                    
253
                    
254// writeString writes the string s to p.output and updates p.pos, p.out,
                    
255// and p.last. If isLit is set, s is escaped w/ tabwriter.Escape characters
                    
257//
                    
258// Note: writeString is only used to write Go tokens, literals, and
                    
259// comments, all of which must be written literally. Thus, it is correct
                    
264//
                    
265func (p *printer) writeString(pos token.Position, s string, isLit bool) {
                    
266	if p.out.Column == 1 {
                    
                
MediaWikiImporter.java git://github.com/liferay/liferay-portal.git | Java | 823 lines
                    
91
                    
92	public static final String OPTIONS_IMPORT_LATEST_VERSION =
                    
93		"OPTIONS_IMPORT_LATEST_VERSION";
                    
453
                    
454		boolean importLatestVersion = MapUtil.getBoolean(
                    
455			options, OPTIONS_IMPORT_LATEST_VERSION);
                    
492
                    
493			if (importLatestVersion) {
                    
494				Element lastRevisionElement = revisionElements.get(
                    
                
xm_xslt_test_fragments.e git://github.com/gobo-eiffel/gobo.git | Specman e | 400 lines
                    
4	"[
                    
5		Test use of fragment identifiers on source and stylesheet URIs.
                    
6		Also, stylesheet chaining and xml-stylesheet PI
                    
8
                    
9	library: "Gobo Eiffel XSLT test suite"
                    
10	copyright: "Copyright (c) 2005-2018, Colin Adams and others"
                    
14
                    
15class XM_XSLT_TEST_FRAGMENTS
                    
16
                    
18
                    
19	TS_TEST_CASE
                    
20
                    
34
                    
35feature -- Test
                    
36
                    
                
Flags.hs git://github.com/fosskers/aura.git | Haskell | 547 lines
                    
43              | Sync     (Either (NonEmpty SyncOp) (Set PkgName)) (Set SyncSwitch)
                    
44              | TestDeps (NonEmpty Text)
                    
45              | Upgrade  (Set UpgradeSwitch) (NonEmpty PkgName)
                    
56  asFlag (Sync (Right ps) ss)     = "-S" : asFlag ss ++ asFlag ps
                    
57  asFlag (TestDeps ps)            = "-T" : asFlag ps
                    
58  asFlag (Upgrade s ps)           = "-U" : asFlag s ++ asFlag ps
                    
270    aurOps = aursync <|> backups <|> cache <|> log <|> orphans <|> version' <|> languages <|> viewconf
                    
271    pacOps = database <|> files <|> queries <|> remove <|> sync <|> testdeps <|> upgrades
                    
272
                    
                
xm_xslt_test_formatting.e git://github.com/gobo-eiffel/gobo.git | Specman e | 695 lines
                    
4
                    
5		"Test format-date(), format-time() and format-dateTime()"
                    
6
                    
6
                    
7	library: "Gobo Eiffel XSLT test suite"
                    
8	copyright: "Copyright (c) 2005-2018, Colin Adams and others"
                    
12
                    
13class XM_XSLT_TEST_FORMATTING
                    
14
                    
16
                    
17	TS_TEST_CASE
                    
18
                    
32
                    
33feature -- Test
                    
34
                    
                
Cron.hs git://github.com/MichaelXavier/cron.git | Haskell | 363 lines
                    
1{-# LANGUAGE OverloadedStrings #-}
                    
2module System.Test.Cron (tests) where
                    
3
                    
16
                    
17tests :: TestTree
                    
18tests = testGroup "System.Cron"
                    
26
                    
27describeScheduleMatches :: TestTree
                    
28describeScheduleMatches = testGroup "scheduleMatches"
                    
29  [
                    
30      testCase "matches a catch-all" $
                    
31      scheduleMatches stars (day 5 25 1 2) @?= True
                    
279  --     nextMatch cs t @?= Just (mkTime 1858 11 20 0 1 0)
                    
280  -- this test has a really variable workload but is usually quite slow because it has to walk minute by minute until it finds the test case, so we'll set an upper bound here
                    
281  --TODO: resize 20?
                    
                
xm_xslt_test_character_map.e git://github.com/gobo-eiffel/gobo.git | Specman e | 398 lines
                    
6		Test character maps and other serialization features.
                    
7		This class tests various aspects of serialization.
                    
8		Principally, use of character maps, but also CDATA sections
                    
17
                    
18class XM_XSLT_TEST_CHARACTER_MAP
                    
19
                    
21
                    
22	XM_XSLT_TEST_ROUTINES
                    
23
                    
117
                    
118	test_xhtml_character_map
                    
119			-- Test use-character-maps with method=xhtml
                    
297	character_map5_results_filename: STRING
                    
298			-- Name of file containing expected results for `test_test_character_map'
                    
299		once
                    
                
parser.go git://github.com/axw/llgo.git | Go | 855 lines
                    
94	var buf bytes.Buffer
                    
95	buf.WriteString(p.scanner.TokenText())
                    
96	// This loop needs to examine each character before deciding whether to consume it. If we see a semicolon,
                    
                
logging_config.pb.go git://github.com/garyburd/gopkgdoc.git | Go | 1203 lines
                    
113	//
                    
114	//     logName:("projects/test-project1/" OR "projects/test-project2/") AND
                    
115	//     resource.type=gce_instance
                    
                
xm_xslt_template.e git://github.com/gobo-eiffel/gobo.git | Specman e | 610 lines
                    
304					check attached match as l_match then
                    
305						l_context_item_type := l_match.node_test
                    
306					end
                    
                
xm_xslt_stylesheet.e git://github.com/gobo-eiffel/gobo.git | Specman e | 1426 lines
                    
47			create imports.make_default
                    
48			imports.set_equality_tester (string_equality_tester)
                    
49			create named_templates_index.make_map (5)
                    
53			create decimal_format_manager.make
                    
54			create collation_map.make_with_equality_testers (1, Void, string_equality_tester)
                    
55			create a_code_point_collator
                    
55			create a_code_point_collator
                    
56			create stylesheet_module_map.make_with_equality_testers (5, Void, string_equality_tester)
                    
57			create module_list.make_default
                    
57			create module_list.make_default
                    
58			module_list.set_equality_tester (string_equality_tester)
                    
59			default_validation := Validation_strip
                    
                
xm_xslt_style_element.e git://github.com/gobo-eiffel/gobo.git | Specman e | 2684 lines
                    
29
                    
30	XM_XPATH_SHARED_EXPRESSION_TESTER
                    
31		export {NONE} all end
                    
32
                    
33	XM_XPATH_SHARED_NODE_KIND_TESTS
                    
34		export {NONE} all end
                    
35
                    
36	XM_XPATH_SHARED_NO_NODE_TEST
                    
37		export {NONE} all end
                    
38
                    
39	XM_XPATH_SHARED_NODE_KIND_TESTS
                    
40		export {NONE} all end
                    
105			create {DS_ARRAYED_LIST [STRING]} Result.make_default
                    
106			Result.set_equality_tester (string_equality_tester)
                    
107			from
                    
                
xm_xslt_result_document.e git://github.com/gobo-eiffel/gobo.git | Specman e | 393 lines
                    
40			validation_action := Validation_strip
                    
41			create formatting_attributes.make_with_equality_testers (Formatting_attributes_count, expression_tester, Void)
                    
42			Precursor (an_error_listener, a_document, a_parent, an_attribute_collection, a_namespace_list, a_name_code, a_sequence_number, a_configuration)
                    
367			create Result.make (Formatting_attributes_count)
                    
368			Result.set_equality_tester (string_equality_tester)
                    
369			Result.put (Method_attribute)
                    
                
sandbox.hs git://github.com/jneira/haskell-desk.git | Haskell | 577 lines
                    
120                  == (f lst)
                    
121test 3.41 = assert 3.4 (foldl (\a b->b+1:a) []) [0,1,2,3]  
                    
122
                    
129otros elementos por 0. Sume los elementos de la lista resultante y compruebe si el resultado es igual a 0 o no.
                    
1303 Compruebe para cada elemento si es igual al elemento buscado o no. Despues compruebe si uno de estos tests
                    
131devolvio True.-}
                    
177No se puede usar el operador !!.
                    
178Antes de contestar esta pregunta, se debe especificar que pasa si j <= i, j > #xs y si i > #s.-}
                    
179
                    
                
exams.hs git://github.com/jneira/haskell-desk.git | Haskell | 1118 lines
                    
53                        
                    
54test1=reescritura ["SALUDO","SOY UN PROGRAMA","DESPEDIDA"] reglas
                    
55         == ["ENCANTADO","QUE TAL?","SOY UN PROGRAMA","ADIOS","NOS VEREMOS"]
                    
402  
                    
403test=ejecutarCodigo [Apilar 4,Apilar 3,Apilar 2,Sumar,Mult] []
                    
404
                    
                
xm_xslt_output.e git://github.com/gobo-eiffel/gobo.git | Specman e | 915 lines
                    
38		do
                    
39			create extension_attributes.make_with_equality_testers (1, string_equality_tester, string_equality_tester)
                    
40			Precursor (an_error_listener, a_document, a_parent, an_attribute_collection, a_namespace_list, a_name_code, a_sequence_number, a_configuration)
                    
                
WikiTestUtil.java git://github.com/liferay/liferay-portal.git | Java | 522 lines
                    
18import com.liferay.portal.kernel.test.util.RandomTestUtil;
                    
19import com.liferay.portal.kernel.test.util.ServiceContextTestUtil;
                    
20import com.liferay.portal.kernel.test.util.TestPropsValues;
                    
240		WikiPage grandchildPage = addPage(
                    
241			TestPropsValues.getUserId(), nodeId, "TestGrandchildPage",
                    
242			RandomTestUtil.randomString(), "TestChildPage", true,
                    
337		WikiPage childPage = addPage(
                    
338			TestPropsValues.getUserId(), nodeId, "TestChildPage",
                    
339			RandomTestUtil.randomString(), "TestPage", true,
                    
369		WikiPage childPage = addPage(
                    
370			TestPropsValues.getUserId(), nodeId, RandomTestUtil.randomString(),
                    
371			RandomTestUtil.randomString(), parentPage.getTitle(), true,
                    
374		WikiPage grandchildPage = addPage(
                    
375			TestPropsValues.getUserId(), nodeId, RandomTestUtil.randomString(),
                    
376			RandomTestUtil.randomString(), childPage.getTitle(), true,
                    
                
search.go git://github.com/garyburd/gopkgdoc.git | Go | 1189 lines
                    
8// TODO: Index.GetAll (or Iterator.GetAll)?
                    
9// TODO: struct <-> protobuf tests.
                    
10// TODO: enforce Python's MIN_NUMBER_VALUE and MIN_DATE (which would disallow a zero
                    
                
WikiPageDependentsTrashHandlerTest.java git://github.com/liferay/liferay-portal.git | Java | 1137 lines
                    
21import com.liferay.portal.kernel.service.ServiceContext;
                    
22import com.liferay.portal.kernel.test.rule.AggregateTestRule;
                    
23import com.liferay.portal.kernel.test.rule.DeleteAfterTestRun;
                    
23import com.liferay.portal.kernel.test.rule.DeleteAfterTestRun;
                    
24import com.liferay.portal.kernel.test.util.GroupTestUtil;
                    
25import com.liferay.portal.kernel.test.util.RandomTestUtil;
                    
25import com.liferay.portal.kernel.test.util.RandomTestUtil;
                    
26import com.liferay.portal.kernel.test.util.ServiceContextTestUtil;
                    
27import com.liferay.portal.kernel.test.util.TestPropsValues;
                    
27import com.liferay.portal.kernel.test.util.TestPropsValues;
                    
28import com.liferay.portal.kernel.test.util.UserTestUtil;
                    
29import com.liferay.portal.kernel.trash.TrashHandler;
                    
56	@Rule
                    
57	public static final AggregateTestRule aggregateTestRule =
                    
58		new LiferayIntegrationTestRule();
                    
                
memcache.go git://github.com/garyburd/gopkgdoc.git | Go | 526 lines
                    
172	}
                    
173	if len(res.DeleteStatus) != len(key) {
                    
174		return ErrServerError
                    
176	me, any := make(appengine.MultiError, len(key)), false
                    
177	for i, s := range res.DeleteStatus {
                    
178		switch s {
                    
                
xm_xslt_literal_result_element.e git://github.com/gobo-eiffel/gobo.git | Specman e | 645 lines
                    
83			create l_attribute_values.make (number_of_attributes)
                    
84			l_attribute_values.set_equality_tester (expression_tester)
                    
85			attribute_values := l_attribute_values
                    
                
deps_test.go git://github.com/axw/llgo.git | Go | 520 lines
                    
155
                    
156	// Packages used by testing must be low-level (L2+fmt).
                    
157	"regexp":         {"L2", "regexp/syntax"},
                    
164	"testing":          {"L2", "flag", "fmt", "os", "runtime/pprof", "runtime/trace", "time"},
                    
165	"testing/iotest":   {"L2", "log"},
                    
166	"testing/quick":    {"L2", "flag", "fmt", "reflect"},
                    
166	"testing/quick":    {"L2", "flag", "fmt", "reflect"},
                    
167	"internal/testenv": {"L2", "os", "testing"},
                    
168
                    
244	"mime/quotedprintable":     {"L4"},
                    
245	"net/internal/socktest":    {"L4", "OS", "syscall"},
                    
246	"net/url":                  {"L4"},
                    
441
                    
442func TestDependencies(t *testing.T) {
                    
443	iOS := runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64")
                    
                
WikiPageLocalServiceTest.java git://github.com/liferay/liferay-portal.git | Java | 1266 lines
                    
28import com.liferay.asset.kernel.service.AssetVocabularyLocalServiceUtil;
                    
29import com.liferay.asset.test.util.AssetTestUtil;
                    
30import com.liferay.expando.kernel.model.ExpandoBridge;
                    
44import com.liferay.portal.kernel.test.AssertUtils;
                    
45import com.liferay.portal.kernel.test.rule.AggregateTestRule;
                    
46import com.liferay.portal.kernel.test.rule.DeleteAfterTestRun;
                    
46import com.liferay.portal.kernel.test.rule.DeleteAfterTestRun;
                    
47import com.liferay.portal.kernel.test.util.GroupTestUtil;
                    
48import com.liferay.portal.kernel.test.util.RandomTestUtil;
                    
136			TestPropsValues.getUserId(), _node.getNodeId(),
                    
137			RandomTestUtil.randomString(), RandomTestUtil.randomString(), true,
                    
138			serviceContext);
                    
317	@Test
                    
318	public void testChangeParentWithWorkflowChangesParentAfterUpdateStatus()
                    
319		throws Exception {
                    
                
build.go git://github.com/axw/llgo.git | Go | 1419 lines
                    
370	// Source files
                    
371	GoFiles        []string // .go source files (excluding CgoFiles, TestGoFiles, XTestGoFiles)
                    
372	CgoFiles       []string // .go source files that import "C"
                    
394	// Test information
                    
395	TestGoFiles    []string                    // _test.go files in package
                    
396	TestImports    []string                    // imports from TestGoFiles
                    
396	TestImports    []string                    // imports from TestGoFiles
                    
397	TestImportPos  map[string][]token.Position // line information for TestImports
                    
398	XTestGoFiles   []string                    // _test.go files outside package
                    
398	XTestGoFiles   []string                    // _test.go files outside package
                    
399	XTestImports   []string                    // imports from XTestGoFiles
                    
400	XTestImportPos map[string][]token.Position // line information for XTestImports
                    
417// containing no buildable Go source files. (It may still contain
                    
418// test files, files hidden by build tags, and so on.)
                    
419type NoGoError struct {
                    
                
WikiPageResourcePersistenceTest.java git://github.com/liferay/liferay-portal.git | Java | 546 lines
                    
24import com.liferay.portal.kernel.dao.orm.Session;
                    
25import com.liferay.portal.kernel.test.ReflectionTestUtil;
                    
26import com.liferay.portal.kernel.test.rule.AggregateTestRule;
                    
26import com.liferay.portal.kernel.test.rule.AggregateTestRule;
                    
27import com.liferay.portal.kernel.test.util.RandomTestUtil;
                    
28import com.liferay.portal.kernel.transaction.Propagation;
                    
31import com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil;
                    
32import com.liferay.portal.test.rule.LiferayIntegrationTestRule;
                    
33import com.liferay.portal.test.rule.PersistenceTestRule;
                    
33import com.liferay.portal.test.rule.PersistenceTestRule;
                    
34import com.liferay.portal.test.rule.TransactionalTestRule;
                    
35import com.liferay.wiki.exception.NoSuchPageResourceException;
                    
65	@Rule
                    
66	public static final AggregateTestRule aggregateTestRule =
                    
67		new AggregateTestRule(
                    
                
WikiPagePersistenceTest.java git://github.com/liferay/liferay-portal.git | Java | 1010 lines
                    
25import com.liferay.portal.kernel.test.AssertUtils;
                    
26import com.liferay.portal.kernel.test.ReflectionTestUtil;
                    
27import com.liferay.portal.kernel.test.rule.AggregateTestRule;
                    
27import com.liferay.portal.kernel.test.rule.AggregateTestRule;
                    
28import com.liferay.portal.kernel.test.util.RandomTestUtil;
                    
29import com.liferay.portal.kernel.transaction.Propagation;
                    
33import com.liferay.portal.kernel.util.Time;
                    
34import com.liferay.portal.test.rule.LiferayIntegrationTestRule;
                    
35import com.liferay.portal.test.rule.PersistenceTestRule;
                    
303		_persistence.countByR_N(
                    
304			RandomTestUtil.nextLong(), RandomTestUtil.nextLong());
                    
305
                    
515		_persistence.countByG_N_T_H(
                    
516			RandomTestUtil.nextLong(), RandomTestUtil.nextLong(), "",
                    
517			RandomTestUtil.randomBoolean());
                    
                
xm_xslt_general_variable.e git://github.com/gobo-eiffel/gobo.git | Specman e | 500 lines
                    
266
                    
267							is_text_only := common_child_item_type = text_node_kind_test
                    
268						end
                    
                
WikiNodePersistenceTest.java git://github.com/liferay/liferay-portal.git | Java | 658 lines
                    
24import com.liferay.portal.kernel.dao.orm.Session;
                    
25import com.liferay.portal.kernel.test.ReflectionTestUtil;
                    
26import com.liferay.portal.kernel.test.rule.AggregateTestRule;
                    
26import com.liferay.portal.kernel.test.rule.AggregateTestRule;
                    
27import com.liferay.portal.kernel.test.util.RandomTestUtil;
                    
28import com.liferay.portal.kernel.transaction.Propagation;
                    
32import com.liferay.portal.kernel.util.Time;
                    
33import com.liferay.portal.test.rule.LiferayIntegrationTestRule;
                    
34import com.liferay.portal.test.rule.PersistenceTestRule;
                    
34import com.liferay.portal.test.rule.PersistenceTestRule;
                    
35import com.liferay.portal.test.rule.TransactionalTestRule;
                    
36import com.liferay.wiki.exception.NoSuchNodeException;
                    
66	@Rule
                    
67	public static final AggregateTestRule aggregateTestRule =
                    
68		new AggregateTestRule(
                    
                
 

Source

Language