Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 186 for testJar (0.2 sec)

  1. src/cmd/go/testdata/script/cover_test_pkgselect.txt

    package bar
    
    import "example/foo"
    
    func BarFunc() int {
    	return foo.FooFunc2()
    }
    
    -- bar/bar_test.go --
    package bar_test
    
    import (
    	"example/bar"
    	"testing"
    )
    
    func TestBar(t *testing.T) {
    	if bar.BarFunc() != 42 {
    		t.Fatalf("bad")
    	}
    }
    
    -- baz/baz.go --
    package baz
    
    func BazFunc() int {
    	return -42
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:50:58 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  2. platforms/native/testing-native/src/test/groovy/org/gradle/nativeplatform/test/internal/DefaultNativeTestSuiteBinarySpecTest.groovy

    import spock.lang.Specification
    
    @UsesNativeServices
    class DefaultNativeTestSuiteBinarySpecTest extends Specification {
        @Rule
        TestNameTestDirectoryProvider testDir = new TestNameTestDirectoryProvider(getClass())
        final def testUtil = TestUtil.create(testDir)
    
        def tasks = new DefaultNativeTestSuiteBinarySpec.DefaultTasksCollection(new DefaultBinaryTasksCollection(null, null, CollectionCallbackActionDecorator.NOOP))
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishJavaPlatformIntegTest.groovy

                constraint("org.test:foo:1.0")
                constraint("org.test:bar:1.0")
                noMoreDependencies()
            }
            javaPlatform.parsedPom.scopes.keySet() == ['no_scope'] as Set
            javaPlatform.parsedPom.scope('no_scope') {
                assertNoDependencies()
                assertDependencyManagement("org.test:bar:1.0", "org.test:foo:1.0")
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/internal/tasks/testing/detection/JarFilePackageListerTest.groovy

    class JarFilePackageListerTest extends Specification {
        @Rule
        private TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
        private final TestFile testDir = tmpDir.testDirectory
        private final TestFile zipFile = testDir.file("lib.jar")
        private final ZipOutputStream out = new ZipOutputStream(new FileOutputStream(zipFile))
    
        def lister = new JarFilePackageLister()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/gcc/GccCompatibleNativeCompilerTest.groovy

        }
    
        def "arguments include GCC output flag and output file name"() {
            given:
            def compiler = getCompiler()
            def testDir = tmpDirProvider.testDirectory
            def outputFile = testDir.file("output.ext")
    
            when:
            def args = compiler.getOutputArgs(Stub(NativeCompileSpec), outputFile)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  6. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/WrapperPluginSpec.groovy

    import spock.lang.Specification
    
    @UsesNativeServices
    class WrapperPluginSpec extends Specification {
        @Rule
        public final TestNameTestDirectoryProvider testDir = new TestNameTestDirectoryProvider(getClass())
        def project = TestUtil.createRootProject(testDir.testDirectory)
    
        def "adds 'wrapper' task"() {
            when:
            project.pluginManager.apply WrapperPlugin
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:47:19 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. test/fixedbugs/issue5755.dir/a.go

    func Test7(s []uint8) I { return foo7(s) }
    func Test8(s []int32) I { return foo8(s) }
    func Test9(s int) I     { return foo9(s) }
    
    type bar map[int]int
    
    func (b bar) F() { return }
    
    func TestBar() I { return bar{1: 2} }
    
    type baz int
    
    func IsBaz(x interface{}) bool { _, ok := x.(baz); return ok }
    
    type baz2 int
    
    func IsBaz2(x interface{}) bool {
    	switch x.(type) {
    	case baz2:
    		return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 28 21:29:13 UTC 2013
    - 1.3K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/msvcpp/VisualCppNativeCompilerTest.groovy

        }
    
        def "arguments include MSVC output flag and output file name"() {
            given:
            def compiler = getCompiler()
            def testDir = tmpDirProvider.testDirectory
            def outputFile = testDir.file("output.ext")
            def spec = Stub(compileSpecType)
    
            when:
            def args = compiler.getOutputArgs(spec, outputFile)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  9. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/UriTextResourceTest.groovy

    class UriTextResourceTest extends Specification {
        private TestFile testDir
        private File file
        private URI fileUri
        private RelativeFilePathResolver resolver = Mock()
        @Rule
        public TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
    
        def setup() {
            testDir = tmpDir.createDir('dir')
            file = new File(testDir, 'build.script')
            fileUri = file.toURI()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/BuildCacheKeyFixture.groovy

        Map<String, HashCode> buildCacheKeys = [:]
    
        BuildCacheKeyFixture(GradleExecuter executer, TestDirectoryProvider testDir) {
            super(executer, testDir)
        }
    
        private TestFile getFile() {
            testDir.testDirectory.file("outputBuildCacheKey.json")
        }
    
        @Override
        String initScriptContent() {
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top