Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 154 for InputFile (0.14 sec)

  1. istioctl/pkg/writer/ztunnel/configdump/configdump_test.go

    	tests := []struct {
    		name        string
    		wantConfigs int
    		inputFile   string
    		wantErr     bool
    	}{
    		{
    			name:        "errors if unable to unmarshal bytes",
    			inputFile:   "",
    			wantConfigs: 0,
    			wantErr:     true,
    		},
    		{
    			name:        "loads valid ztunnel config_dump",
    			inputFile:   "testdata/dump.json",
    			wantConfigs: 27,
    			wantErr:     false,
    		},
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 20:18:34 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/FileUtilsTest.groovy

            when:
            File inputFile = new File(RandomStringUtils.randomAlphanumeric(10))
            then:
            inputFile == assertInWindowsPathLengthLimitation(inputFile);
    
            when:
            inputFile = new File(RandomStringUtils.randomAlphanumeric(261))
            assertInWindowsPathLengthLimitation(inputFile);
            then:
            def e = thrown(GradleException);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/BuildScriptChangesContinuousBuildIntegrationTest.groovy

            file(buildFileName) << """
                tasks.register("myTask") {
                  ${variableDefinition} inputFile = file("input/marker")
                  inputs.files(inputFile)
                  outputs.files("build/marker")
                  doLast {
                    println("value: " + inputFile.${readTextMethod})
                  }
                }
            """
    
            when:
            succeeds(":myTask")
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/internal/generator/PropertiesPersistableConfigurationObjectTest.groovy

                properties['prop'] = propertyValue
            }
        }
    
        def loadsFromPropertiesFile() {
            def inputFile = tmpDir.file('input.properties')
            inputFile.text = 'prop=value'
    
            when:
            object.load(inputFile)
    
            then:
            propertyValue == 'value'
        }
    
        def loadsFromDefaultResource() {
            when:
            object.loadDefaults()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  5. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/ValidatePluginsPart1IntegrationTest.groovy

                fqid == 'validation:property-validation:annotation-invalid-in-context'
                contextualLabel == 'Type \'MyTransformAction\' property \'inputFile\' is annotated with invalid property type @InputFile'
                details == 'The \'@InputFile\' annotation cannot be used in this context'
                solutions == [
                    'Remove the property',
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  6. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/snapshot/SnapshottingServiceIntegrationTest.groovy

            pluginBuilder.addPlugin("""
                def inputFile = project.file("input.txt")
                def snapshottingService = project.services.get(${SnapshottingService.name})
                def snapshot = snapshottingService.snapshotFor(inputFile.toPath())
    
                println("Snapshot for input file \${inputFile.name} is \$snapshot")
            """
            )
            pluginBuilder.generateForBuildSrc()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 17 10:17:11 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/ContinuousBuildGateIntegrationTest.groovy

                class SimpleTask extends DefaultTask {
                    @InputFile
                    File inputFile = project.file("input.txt")
    
                    @OutputFile
                    File outputFile = new File(project.buildDir, "output.txt")
    
                    @TaskAction
                    void generate() {
                        outputFile.text = inputFile.text
                    }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  8. platforms/core-execution/execution/src/integTest/groovy/org/gradle/internal/execution/IncrementalExecutionIntegrationTest.groovy

            execute(unitOfWork)
    
            when:
            inputFile.write("some new content")
    
            then:
            outOfDate(unitOfWork, inputFilesChanged(file: [inputFile]))
        }
    
        def "out-of-date when any input file type changes"() {
            given:
            execute(unitOfWork)
    
            when:
            inputFile.delete()
            inputFile.createDir()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:36:34 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  9. platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/FileSystemRootUpToDateIntegrationTest.groovy

            def inputFileName = "input.txt"
            def inputFile = file(inputFileName)
            inputFile << 'content'
    
            def outputDirectory = new File(drive)
    
            def taskName = 'outputFromFilesystemRoot'
            def script = """
                class InputFileToOutputDirectoryCopyAction extends DefaultTask {
                    @InputFile File input
                    @OutputDirectory File outputDirectory
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 10:15:40 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/UntrackedTaskIntegrationTest.groovy

            buildFile("""
                tasks.register("myTask") {
                    doNotTrackState("For testing")
                    def inputFile = file("input.txt")
                    inputs.file(inputFile)
                        .withPropertyName("inputFile")
                    def outputFile = project.layout.buildDirectory.file("output.txt")
                    outputs.file(outputFile)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 23 08:05:53 UTC 2023
    - 16.4K bytes
    - Viewed (0)
Back to top