Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 475 for writeTime (0.14 sec)

  1. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultFileLockManagerWithNewProtocolTest.groovy

            given:
            def lockManager = new DefaultFileLockManager(metaDataProvider, contentionHandler)
            writeFile(lockManager)
    
            and:
            def lock = createLock(lockMode)
            def beforeUpdate = lock.state
            lock.close()
    
            and:
            writeFile(lockManager)
            writeFile(lockManager)
    
            when:
            lock = createLock(lockMode)
            def afterUpdate = lock.state
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:52:52 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/serialize/ClassPathEncodingExtensions.kt

    fun Encoder.writeDefaultClassPath(classPath: ClassPath) {
        writeCollection(classPath.asFiles) {
            writeFile(it)
        }
    }
    
    
    internal
    fun Encoder.writeTransformedClassPath(classPath: TransformedClassPath) {
        writeCollection(classPath.asFiles.zip(classPath.asTransformedFiles)) {
            writeFile(it.first)
            writeFile(it.second)
        }
    }
    
    
    internal
    fun Decoder.readClassPath(): ClassPath {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/io/ioutil/ioutil.go

    	return os.ReadFile(filename)
    }
    
    // WriteFile writes data to a file named by filename.
    // If the file does not exist, WriteFile creates it with permissions perm
    // (before umask); otherwise WriteFile truncates it before writing, without changing permissions.
    //
    // Deprecated: As of Go 1.16, this function simply calls [os.WriteFile].
    func WriteFile(filename string, data []byte, perm fs.FileMode) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. src/io/ioutil/ioutil_test.go

    	}
    	defer os.RemoveAll(tempDir)
    	filename := filepath.Join(tempDir, "blurp.txt")
    
    	shmorp := []byte("shmorp")
    	florp := []byte("florp")
    	err = WriteFile(filename, shmorp, 0444)
    	if err != nil {
    		t.Fatalf("WriteFile %s: %v", filename, err)
    	}
    	err = WriteFile(filename, florp, 0444)
    	if err == nil {
    		t.Fatalf("Expected an error when writing to read-only file %s", filename)
    	}
    	got, err := ReadFile(filename)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:56:32 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/testKit/junitQuickstart/groovy/src/test/java/org/gradle/sample/BuildLogicFunctionalTest.java

            writeFile(settingsFile, "rootProject.name = 'hello-world'");
            String buildFileContent = "task helloWorld {" +
                                      "    doLast {" +
                                      "        println 'Hello world!'" +
                                      "    }" +
                                      "}";
            writeFile(buildFile, buildFileContent);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/FileCodecs.kt

    import org.gradle.internal.serialize.graph.WriteContext
    import org.gradle.internal.serialize.graph.readFile
    import org.gradle.internal.serialize.graph.writeFile
    
    
    class DirectoryCodec(private val fileFactory: FileFactory) : Codec<Directory> {
        override suspend fun WriteContext.encode(value: Directory) {
            writeFile(value.asFile)
        }
    
        override suspend fun ReadContext.decode(): Directory {
            return fileFactory.dir(readFile())
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/riscv/asm_test.go

    		t.Fatalf("could not create directory: %v", err)
    	}
    	defer os.RemoveAll(dir)
    
    	if err := os.WriteFile(filepath.Join(dir, "go.mod"), []byte("module largecall"), 0644); err != nil {
    		t.Fatalf("Failed to write file: %v\n", err)
    	}
    	main := `package main
    func main() {
            x()
    }
    
    func x()
    func y()
    `
    	if err := os.WriteFile(filepath.Join(dir, "x.go"), []byte(main), 0644); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 22 01:50:18 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  8. src/cmd/link/internal/wasm/asm.go

    	sizeOffset := writeSecHeader(ctxt, sectionCustom)
    	writeName(ctxt.Out, "producers")
    
    	writeUleb128(ctxt.Out, 2) // number of fields
    
    	writeName(ctxt.Out, "language")       // field name
    	writeUleb128(ctxt.Out, 1)             // number of values
    	writeName(ctxt.Out, "Go")             // value: name
    	writeName(ctxt.Out, buildcfg.Version) // value: version
    
    	writeName(ctxt.Out, "processed-by")   // field name
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:48 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/cli-runtime/pkg/resource/kustomizevisitor_test.go

    `
    )
    
    func TestKustomizeVisitor(t *testing.T) {
    	fSys := filesys.MakeFsInMemory()
    	fSys.WriteFile(
    		konfig.DefaultKustomizationFileName(),
    		[]byte(kustomizationContent1))
    	fSys.WriteFile("deployment.yaml", []byte(deploymentContent))
    	fSys.WriteFile("namespace.yaml", []byte(namespaceContent))
    	fSys.WriteFile("jsonpatch.json", []byte(jsonpatchContent))
    	b := newDefaultBuilder()
    	kv := KustomizeVisitor{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 00:05:53 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  10. cni/pkg/install/kubeconfig_test.go

    	k8sServicePort = "443"
    	kubeCAFilepath = "testdata/kube-ca.crt"
    	saToken        = "service_account_token_string"
    )
    
    func TestCreateValidKubeconfigFile(t *testing.T) {
    	tmp := t.TempDir()
    	os.WriteFile(filepath.Join(tmp, "token"), []byte(saToken), 0o644)
    	cases := []struct {
    		name               string
    		expectedFailure    bool
    		k8sServiceProtocol string
    		k8sServiceHost     string
    		k8sServicePort     string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 21:52:29 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top