Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for testname1 (0.22 sec)

  1. src/internal/trace/testdata/mktests.go

    		}
    	}
    	return &context{
    		testNames: make(map[string]struct{}),
    		filter:    filter,
    	}, nil
    }
    
    func (ctx *context) register(testName string) (skip bool, err error) {
    	if _, ok := ctx.testNames[testName]; ok {
    		return true, fmt.Errorf("duplicate test %s found", testName)
    	}
    	if ctx.filter != nil {
    		return !ctx.filter.MatchString(testName), nil
    	}
    	return false, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

            classes.add(cls);
          }
        }
        return classes;
      }
    
      private static boolean hasTest(Class<?> testClass, Iterable<String> testNames) {
        for (String testName : testNames) {
          try {
            testClass.getMethod(testName);
            return true;
          } catch (NoSuchMethodException e) {
            continue;
          }
        }
        return false;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/tasks/testing/testng/TestNGOptionsTest.groovy

                useDefaultListeners == source.useDefaultListeners
                threadPoolFactoryClass == source.threadPoolFactoryClass
                suiteName == source.suiteName
                testName == source.testName
                suiteXmlFiles == source.suiteXmlFiles
                preserveOrder == source.preserveOrder
                groupByInstances == source.groupByInstances
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 22:42:49 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. src/cmd/dist/test.go

    	} else if strings.HasSuffix(name, ":racebench") && heading != "Running benchmarks briefly." {
    		panic("racebench variant is reserved exclusively for registerRaceBenchTest")
    	}
    	if t.testNames == nil {
    		t.testNames = make(map[string]bool)
    	}
    	t.testNames[name] = true
    	t.tests = append(t.tests, distTest{
    		name:    name,
    		heading: heading,
    		fn:      fn,
    	})
    }
    
    type registerTestOpt interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
  5. src/internal/trace/oldtrace_test.go

    	if err != nil {
    		t.Fatalf("failed to glob for tests: %s", err)
    	}
    	var testedUserRegions bool
    	for _, p := range traces {
    		p := p
    		testName, err := filepath.Rel("./internal/oldtrace/testdata", p)
    		if err != nil {
    			t.Fatalf("failed to relativize testdata path: %s", err)
    		}
    		t.Run(testName, func(t *testing.T) {
    			f, err := os.Open(p)
    			if err != nil {
    				t.Fatalf("failed to open test %q: %s", p, err)
    			}
    			defer f.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

            classes.add(cls);
          }
        }
        return classes;
      }
    
      private static boolean hasTest(Class<?> testClass, Iterable<String> testNames) {
        for (String testName : testNames) {
          try {
            testClass.getMethod(testName);
            return true;
          } catch (NoSuchMethodException e) {
            continue;
          }
        }
        return false;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  7. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/FullExceptionFormatterTest.groovy

            expect:
            formatter.format(testDescriptor, [exception]) == """\
        java.lang.Exception: ouch
            at ClassName.testName(MyTest.java:22)
    
            Caused by:
            java.lang.RuntimeException: oops
                at ClassName.testName(MyTest.java:22)
    """
        }
    
        def "formats PlaceholderException correctly"() {
            testLogging.getShowCauses() >> true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. src/internal/trace/reader_test.go

    	if err != nil {
    		t.Fatalf("failed to glob for tests: %v", err)
    	}
    	for _, testPath := range matches {
    		testPath := testPath
    		testName, err := filepath.Rel("./testdata", testPath)
    		if err != nil {
    			t.Fatalf("failed to relativize testdata path: %v", err)
    		}
    		t.Run(testName, func(t *testing.T) {
    			tr, exp, err := testtrace.ParseFile(testPath)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/AbstractConfigurationCacheIntegrationTest.groovy

            fails(ENABLE_CLI_OPT, LOG_REPORT_LINK_AS_WARNING, *tasks)
        }
    
        protected void assertTestsExecuted(String testClass, String... testNames) {
            new DefaultTestExecutionResult(testDirectory)
                .testClass(testClass)
                .assertTestsExecuted(testNames)
        }
    
        protected static String removeVfsLogOutput(String normalizedOutput) {
            normalizedOutput
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/tasks/testing/testng/TestNGOptions.java

         */
        @Internal
        public String getTestName() {
            return testName;
        }
    
        public void setTestName(String testName) {
            this.testName = testName;
        }
    
        /**
         * The suiteXmlFiles to use for running TestNG.
         *
         * Note: The suiteXmlFiles can be used in conjunction with the suiteXmlBuilder.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 22:42:49 UTC 2024
    - 15.7K bytes
    - Viewed (0)
Back to top