Home | History | Annotate | Download | only in testing

Lines Matching refs:Examples

78 // Examples
83 // ignores leading and trailing space.) These are examples of an example:
100 // The naming convention to declare examples for the package, a function F, a type T and
241 match = flag.String("test.run", "", "run only tests and examples matching `regexp`")
254 haveExamples bool // are there examples?
774 func Main(matchString func(pat, str string) (bool, error), tests []InternalTest, benchmarks []InternalBenchmark, examples []InternalExample) {
775 os.Exit(MainStart(matchStringOnly(matchString), tests, benchmarks, examples).Run())
783 examples []InternalExample
801 func MainStart(deps testDeps, tests []InternalTest, benchmarks []InternalBenchmark, examples []InternalExample) *M {
806 examples: examples,
821 haveExamples = len(m.examples) > 0
823 exampleRan, exampleOk := runExamples(m.deps.MatchString, m.examples)