Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 720 for readFiles (0.28 sec)

  1. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/AbstractLoggingHooksFunctionalTest.groovy

                    println "finished"
                    assert output.toString().readLines() == [":log", "output"]
                    assert error.toString().readLines() == ["error"]
                    assert before.toString().readLines() == [":log", "output", "error"]
                    assert after.toString().readLines() == []
                }
            """
    
            expect:
            succeeds("log", "other")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/binaryinfo/OtoolBinaryInfo.groovy

            def process = ['ar', '-t', binaryFile.getAbsolutePath()].execute(environments, null)
            return process.inputStream.readLines().drop(1)
        }
    
        List<String> listLinkedLibraries() {
            def process = ['otool', '-L', binaryFile.absolutePath].execute(environments, null)
            def lines = process.inputStream.readLines()
            return lines
        }
    
        List<Symbol> listSymbols() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. src/io/ioutil/ioutil_test.go

    	}
    }
    
    func TestReadFile(t *testing.T) {
    	filename := "rumpelstilzchen"
    	contents, err := ReadFile(filename)
    	if err == nil {
    		t.Fatalf("ReadFile %s: error expected, none found", filename)
    	}
    
    	filename = "ioutil_test.go"
    	contents, err = ReadFile(filename)
    	if err != nil {
    		t.Fatalf("ReadFile %s: %v", filename, err)
    	}
    
    	checkSize(t, filename, int64(len(contents)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:56:32 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformIsolationIntegrationTest.groovy

                file("build/libs1/test-1.3.jar.txt").readLines() == ["1", "2", "3", "4", "5"]
                file("build/libs1/test2-2.3.jar.txt").readLines() == ["1", "2", "3", "4", "5"]
            } else {
                // Counter is isolated at execution time, so transforms will see the increment in each tasks' doLast { }
                file("build/libs2/test-1.3.jar.txt").readLines() == ["2", "3", "4", "5", "6"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  5. src/os/file.go

    		return nil, err
    	}
    	return f, nil
    }
    
    // The ReadFile method calls the [ReadFile] function for the file
    // with the given name in the directory. The function provides
    // robust handling for small files and special file systems.
    // Through this method, dirFS implements [io/fs.ReadFileFS].
    func (dir dirFS) ReadFile(name string) ([]byte, error) {
    	fullname, err := dir.join(name)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:37 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  6. src/os/read_test.go

    	}
    }
    
    func TestReadFile(t *testing.T) {
    	t.Parallel()
    
    	filename := "rumpelstilzchen"
    	contents, err := ReadFile(filename)
    	if err == nil {
    		t.Fatalf("ReadFile %s: error expected, none found", filename)
    	}
    
    	filename = "read_test.go"
    	contents, err = ReadFile(filename)
    	if err != nil {
    		t.Fatalf("ReadFile %s: %v", filename, err)
    	}
    
    	checkNamedSize(t, filename, int64(len(contents)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 02:36:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/processing/AnnotationProcessorDetector.java

                    return Collections.emptyMap();
                }
                List<String> lines = readLines(incrementalProcessorDeclaration);
                return parseIncrementalProcessors(lines);
            }
    
            private List<String> readLines(File file) throws IOException {
                return Files.asCharSource(file, Charsets.UTF_8).readLines(new MetadataLineProcessor());
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  8. src/cmd/internal/buildid/buildid_test.go

    			continue
    		}
    		defer os.Remove(f)
    		id, err := ReadFile(f)
    		if id != expectedID || err != nil {
    			t.Errorf("ReadFile(testdata/%s) = %q, %v, want %q, nil", f, id, err, expectedID)
    		}
    		old := readSize
    		readSize = 2048
    		id, err = ReadFile(f)
    		readSize = old
    		if id != expectedID || err != nil {
    			t.Errorf("ReadFile(%s) [readSize=2k] = %q, %v, want %q, nil", f, id, err, expectedID)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:28 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/internal/analysisutil/util.go

    			}
    		}
    		return true
    	})
    	return !safe
    }
    
    // ReadFile reads a file and adds it to the FileSet
    // so that we can report errors against it using lineStart.
    func ReadFile(pass *analysis.Pass, filename string) ([]byte, *token.File, error) {
    	readFile := pass.ReadFile
    	if readFile == nil {
    		readFile = os.ReadFile
    	}
    	content, err := readFile(filename)
    	if err != nil {
    		return nil, nil, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. pkg/util/kernel/version.go

    func GetVersion() (*version.Version, error) {
    	return getVersion(os.ReadFile)
    }
    
    // getVersion reads os release file from the give readFile function.
    func getVersion(readFile readFileFunc) (*version.Version, error) {
    	kernelVersionFile := "/proc/sys/kernel/osrelease"
    	fileContent, err := readFile(kernelVersionFile)
    	if err != nil {
    		return nil, fmt.Errorf("failed to read os-release file: %s", err.Error())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 19:24:34 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top