- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for fileContent (4.43 sec)
-
testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/archive/ArchiveTestFixture.groovy
/** * Asserts that there is exactly one file present with the given path, and that this file has the given content. */ def assertFileContent(String relativePath, String fileContent) { assertFileContent(relativePath, equalTo(fileContent)) } def assertFileContent(String relativePath, Matcher contentMatcher) { assertThat(content(relativePath), contentMatcher) this } /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 4.8K bytes - Viewed (0) -
cmd/gotemplate/gotemplate_test.go
}, } { cwd, err := os.Getwd() require.NoError(t, err) t.Run(name, func(t *testing.T) { tmp := t.TempDir() for fileName, fileContent := range tt.files { err := os.WriteFile(path.Join(tmp, fileName), []byte(fileContent), 0666) require.NoError(t, err, "create input file") } defer os.Chdir(cwd) require.NoError(t, os.Chdir(tmp), "change into tmp directory")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 22 13:43:42 UTC 2024 - 2.7K bytes - Viewed (0) -
pkg/util/kernel/version.go
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()) } kernelVersion, err := version.ParseGeneric(strings.TrimSpace(string(fileContent))) if err != nil { return nil, fmt.Errorf("failed to parse kernel version: %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) -
src/cmd/go/testdata/script/test_cache_inputs.txt
exec ./mkold$GOEXE 1m testcache/file.txt go test testcache -run=FileContent go test testcache -run=FileContent stdout '\(cached\)' cp 2y.txt testcache/file.txt exec ./mkold$GOEXE 50s testcache/file.txt go test testcache -run=FileContent ! stdout '\(cached\)' go test testcache -run=FileContent stdout '\(cached\)' # Directory contents read via os.ReadDirNames should affect caching.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 09 22:23:53 UTC 2024 - 6.3K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/cache/internal/DefaultFileContentCacheFactory.java
this.fileSystemAccess = fileSystemAccess; this.inMemoryCacheDecoratorFactory = inMemoryCacheDecoratorFactory; this.cache = cacheBuilderFactory .createCacheBuilder("fileContent") .withDisplayName("file content cache") .withInitialLockMode(FileLockManager.LockMode.OnDemand) .open(); } @Override public void close() throws IOException {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 10 15:51:31 UTC 2024 - 5.6K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/file/FileContents.java
*/ package org.gradle.api.file; import org.gradle.api.provider.Provider; /** * Provides lazy access to the contents of a given file. * * @since 6.1 */ public interface FileContents { /** * Gets a provider of the entire file contents as a single String. * * <p> * The file is read only once and only when the value is requested for the first time. * </p>
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 08 14:00:30 UTC 2021 - 2.6K bytes - Viewed (0) -
platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/fixtures/MSBuildExecutor.java
} else { for (ExecutionOutput output : getOutputFiles()) { String gradleStdout = fileContents(output.stdout); String gradleStderr = fileContents(output.stderr); System.out.println(gradleStdout); System.out.println(gradleStderr);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultProviderFactory.java
); } @Override public FileContents fileContents(RegularFile file) { return fileContents(property -> property.set(file)); } @Override public FileContents fileContents(Provider<RegularFile> file) { return fileContents(property -> property.set(file)); } private FileContents fileContents(Action<RegularFileProperty> setFileProperty) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 8.7K bytes - Viewed (0) -
cmd/kubeadm/app/util/config/initconfiguration_test.go
// cfgFiles is in cluster_test.go var tests = []struct { name string fileContents []byte expectErr bool validate func(*testing.T, *kubeadm.InitConfiguration) }{ { name: "v1beta3.partial1", fileContents: cfgFiles["InitConfiguration_v1beta3"], }, { name: "v1beta3.partial2", fileContents: bytes.Join([][]byte{ cfgFiles["InitConfiguration_v1beta3"], clusterCfg,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 13 09:17:03 UTC 2023 - 5.2K bytes - Viewed (0) -
platforms/software/resources-gcs/src/integTest/groovy/org/gradle/integtests/resource/gcs/GcsClientIntegrationTest.groovy
@Rule final GcsServer server = new GcsServer(temporaryFolder) def "should perform put, get and list on an Gcs bucket"() { setup: def fileContents = 'This is only a test' File file = temporaryFolder.createFile(FILE_NAME) file << fileContents Storage.Builder builder = new Storage.Builder(new NetHttpTransport(), new GsonFactory(), null) builder.setRootUrl(server.uri.toString())
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 4.4K bytes - Viewed (0)