Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 187 for test_ir (0.11 sec)

  1. 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)
  2. 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)
  3. 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)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/FileCopyActionTest.groovy

    class FileCopyActionTest extends Specification {
        private File destDir
    
        @Rule
        public TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
    
        def setup() throws IOException {
            destDir = tmpDir.getTestDirectory().file("dest")
        }
    
        def plainCopy() {
            FileCopyAction visitor = new FileCopyAction(TestFiles.resolver(destDir))
    
            expect:
            visit(visitor,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 06 01:29:26 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/go/testdata/vendormod.txt

    package b
    
    import (
    	"os"
    	"testing"
    )
    
    func TestDir(t *testing.T) {
    	if _, err := os.Stat("../testdata/1"); err != nil {
    		t.Fatalf("testdata: %v", err)
    	}
    }
    -- a/foo/bar/c/main.go --
    package c
    -- a/foo/bar/c/main_test.go --
    package c
    
    import (
    	"os"
    	"testing"
    )
    
    func TestDir(t *testing.T) {
    	if _, err := os.Stat("../../../testdata/1"); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 12 20:46:50 UTC 2018
    - 2.3K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_sql_databases/test_testing_databases_py39.py

    @needs_pydanticv1
    def test_testing_dbs_py39(tmp_path_factory: pytest.TempPathFactory):
        tmp_path = tmp_path_factory.mktemp("data")
        cwd = os.getcwd()
        os.chdir(tmp_path)
        test_db = Path("./test.db")
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
        # Import while creating the client to create the DB after starting the test session
        from docs_src.sql_databases.sql_app_py39.tests import test_sql_app
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 822 bytes
    - Viewed (0)
  8. testing/integ-test/src/integTest/groovy/org/gradle/integtests/MultiprojectIntegrationTest.groovy

                allprojects {
                    def destDir = buildDir
                    task test {
                        doLast {
                            destDir.mkdirs()
                            new File(destDir, 'test.txt') << 'content'
                        }
                    }
                    gradle.taskGraph.whenReady {
                        destDir.mkdirs()
                        new File(destDir, 'whenReady.txt') << 'content'
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  9. testing/internal-testing/src/main/groovy/org/gradle/testfixtures/internal/NativeServicesTestFixture.java

    import java.io.File;
    
    public class NativeServicesTestFixture {
        // Collect this early, as the process' current directory can change during embedded test execution
        private static final TestFile TEST_DIR = new TestFile(new File(".").toURI());
        static NativeServices nativeServices;
        static boolean initialized;
    
        public static synchronized void initialize() {
            if (!initialized) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/OriginFixture.groovy

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