Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 36 for runSamples (0.21 sec)

  1. platforms/jvm/toolchains-jvm/src/integTest/groovy/org/gradle/AutoTestedSamplesToolchainsJvmIntegrationTest.groovy

    
    /**
     * Runs samples contained in class-level javadoc comments in the `toolchains-jvm` project.
     */
    class AutoTestedSamplesToolchainsJvmIntegrationTest extends AbstractAutoTestedSamplesTest {
        @Test
        void runSamples() {
            // for debugging purposes you can restrict the tests samples to only a single class
    //        includeOnly '**/Test.java'
            runSamplesFrom("src/main")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 12 18:44:49 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/AutoTestedSamplePlatformBaseIntegrationTest.groovy

    import org.junit.Test
    
    @UnsupportedWithConfigurationCache(because = "software model")
    class AutoTestedSamplePlatformBaseIntegrationTest extends AbstractAutoTestedSamplesTest {
        @Test
        void runSamples() {
            runSamplesFrom("src/main")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 1K bytes
    - Viewed (0)
  3. platforms/jvm/plugins-groovy/src/integTest/groovy/org/gradle/api/plugins/AutoTestedSamplesGroovyIntegrationTest.groovy

    /**
     * Runs samples contained in class-level javadoc comments in the `plugins-groovy` project.
     */
    class AutoTestedSamplesGroovyIntegrationTest extends AbstractAutoTestedSamplesTest {
        @Test
        void runSamples() {
            // for debugging purposes you can restrict the tests samples to only a single class
    //        includeOnly '**/Test.java'
            runSamplesFrom("src/main")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 12 18:44:49 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. platforms/software/plugins-distribution/src/integTest/groovy/org/gradle/integtests/samples/AutoTestedSamplesPluginsDistributionIntegrationTest.groovy

    /**
     * Runs samples contained in class-level javadoc comments in the `plugins-distribution` project.
     */
    class AutoTestedSamplesPluginsDistributionIntegrationTest extends AbstractAutoTestedSamplesTest {
        @Test
        void runSamples() {
            // for debugging purposes you can restrict the tests samples to only a single class
    //        includeOnly '**/Test.java'
            runSamplesFrom("src/main")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 20 21:03:51 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  5. subprojects/core-api/src/integTest/groovy/org/gradle/samples/AutoTestedSamplesCoreApiIntegrationTest.groovy

    import org.gradle.integtests.fixtures.AbstractAutoTestedSamplesTest
    import org.junit.Test
    
    class AutoTestedSamplesCoreApiIntegrationTest extends AbstractAutoTestedSamplesTest {
    
        @Test
        void runSamples() {
            // for example in Settings.java
            file('subprojects/abc').createDir()
    
            // for example in DependencySubstitutions.java
            file("settings.gradle") << """
                include 'api', 'util'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 02 07:21:04 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/AutoTestedSamplesToolingApiTest.groovy

    import spock.lang.Specification
    
    class AutoTestedSamplesToolingApiTest extends Specification {
    
        @Rule public final TestNameTestDirectoryProvider temp = new TestNameTestDirectoryProvider(getClass())
    
        void runSamples() {
            expect:
    
            def util = new AutoTestedSamplesUtil()
            util.findSamples("src/main") { file, sample, tagSuffix ->
                println "Found sample: ${sample.split("\n")[0]} (...) in $file"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  7. src/testing/example.go

    	Output    string
    	Unordered bool
    }
    
    // RunExamples is an internal function but exported because it is cross-package;
    // it is part of the implementation of the "go test" command.
    func RunExamples(matchString func(pat, str string) (bool, error), examples []InternalExample) (ok bool) {
    	_, ok = runExamples(matchString, examples)
    	return ok
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. src/go/doc/testdata/example.go

    package testing
    
    import (
    	"bytes"
    	"fmt"
    	"io"
    	"os"
    	"strings"
    	"time"
    )
    
    type InternalExample struct {
    	Name   string
    	F      func()
    	Output string
    }
    
    func RunExamples(examples []InternalExample) (ok bool) {
    	ok = true
    
    	var eg InternalExample
    
    	stdout, stderr := os.Stdout, os.Stderr
    	defer func() {
    		os.Stdout, os.Stderr = stdout, stderr
    		if e := recover(); e != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  9. test/heapsampling.go

    		panic(err.Error())
    	}
    	if err := testSmallAllocations(); err != nil {
    		panic(err.Error())
    	}
    }
    
    // Repeatedly exercise a set of allocations and check that the heap
    // profile collected by the runtime unsamples to a reasonable
    // value. Because sampling is based on randomization, there can be
    // significant variability on the unsampled data. To account for that,
    // the testcase allows for a 10% margin of error, but only fails if it
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 27 21:36:06 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  10. src/go/doc/testdata/testing.2.golden

    	// An internal function but exported because it is cross-package; ...
    	func RunBenchmarks(matchString func(pat, str string) (bool, error), benchmarks []InternalBenchmark)
    
    	// 
    	func RunExamples(examples []InternalExample) (ok bool)
    
    	// 
    	func RunTests(matchString func(pat, str string) (bool, error), tests []InternalTest) (ok bool)
    
    	// Short reports whether the -test.short flag is set. 
    	func Short() bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 4.1K bytes
    - Viewed (0)
Back to top