- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,140 for filedata (0.86 sec)
-
src/cmd/compile/internal/test/pgo_inl_test.go
if err != nil { t.Fatalf("error getting wd: %v", err) } srcDir := filepath.Join(wd, "testdata/pgo/inline") // Copy the module to a scratch location so we can add a go.mod. dir := t.TempDir() for _, file := range []string{"inline_hot.go", "inline_hot_test.go", profFile} { if err := copyFile(filepath.Join(dir, file), filepath.Join(srcDir, file)); err != nil { t.Fatalf("error copying %s: %v", file, err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 11.1K bytes - Viewed (0) -
tensorflow/c/env_test.cc
<< TF_Message(s); ::tensorflow::string filepath = ::tensorflow::io::JoinPath(dirpath, "somefile.txt"); TF_WritableFileHandle* handle; TF_NewWritableFile(filepath.c_str(), &handle, s); ASSERT_TF_OK(s) << "NewWritableFile failed for " << filepath << ": " << TF_Message(s); const char* data = "Hello, world!\n";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Dec 10 20:52:48 UTC 2018 - 4.2K bytes - Viewed (0) -
src/os/executable_test.go
"fmt" "internal/testenv" "os" "path/filepath" "runtime" "testing" ) const executable_EnvVar = "OSTEST_OUTPUT_EXECPATH" func TestExecutable(t *testing.T) { testenv.MustHaveExec(t) t.Parallel() ep, err := os.Executable() if err != nil { t.Fatalf("Executable failed: %v", err) } // we want fn to be of the form "dir/prog" dir := filepath.Dir(filepath.Dir(ep)) fn, err := filepath.Rel(dir, ep)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 23:35:32 UTC 2023 - 3.4K bytes - Viewed (0) -
src/path/filepath/example_test.go
// license that can be found in the LICENSE file. package filepath_test import ( "fmt" "path/filepath" ) func ExampleExt() { fmt.Printf("No dots: %q\n", filepath.Ext("index")) fmt.Printf("One dot: %q\n", filepath.Ext("index.js")) fmt.Printf("Two dots: %q\n", filepath.Ext("main.test.js")) // Output: // No dots: "" // One dot: ".js" // Two dots: ".js"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 16:24:37 UTC 2017 - 475 bytes - Viewed (0) -
src/path/filepath/path_windows_test.go
// Make sure we have sufficient privilege to run mklink command. testenv.MustHaveSymlink(t) file := filepath.Join(tmpdir, "file") err = os.WriteFile(file, []byte(""), 0666) if err != nil { t.Fatal(err) } target = filepath.Join(target, file[len(filepath.VolumeName(file)):]) filelink := filepath.Join(tmpdir, "filelink") output, err = exec.Command("cmd", "/c", "mklink", filelink, target).CombinedOutput()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 20:38:54 UTC 2024 - 19.6K bytes - Viewed (0) -
src/os/file_open_wasip1.go
"internal/poll" "syscall" ) func open(filePath string, flag int, perm uint32) (int, poll.SysFile, error) { if filePath == "" { return -1, poll.SysFile{}, syscall.EINVAL } absPath := filePath // os.(*File).Chdir is emulated by setting the working directory to the // absolute path that this file was opened at, which is why we have to // resolve and capture it here. if filePath[0] != '/' { wd, err := syscall.Getwd()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 23:34:21 UTC 2023 - 818 bytes - Viewed (0) -
cmd/kubeadm/app/util/staticpod/utils_linux.go
saPublicKeyFile := filepath.Join(cfg.CertificatesDir, kubeadmconstants.ServiceAccountPublicKeyName) if err := updatePathOwnerAndPermissions(saPublicKeyFile, *runAsUser, *runAsGroup, 0600); err != nil { return err } saPrivateKeyFile := filepath.Join(cfg.CertificatesDir, kubeadmconstants.ServiceAccountPrivateKeyName)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 11 14:41:12 UTC 2023 - 8.4K bytes - Viewed (0) -
src/cmd/internal/archive/archive_test.go
if err != nil { return err } go1obj := filepath.Join(buildDir, "go1.o") go2obj := filepath.Join(buildDir, "go2.o") goarchive := filepath.Join(buildDir, "go.a") cgoarchive := "" gotool, err := testenv.GoTool() if err != nil { return err } go1src := filepath.Join("testdata", "go1.go") go2src := filepath.Join("testdata", "go2.go")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 02 19:27:33 UTC 2023 - 7.9K bytes - Viewed (0) -
src/cmd/cover/cover_test.go
testenv.MustHaveGoRun(t) dir := tempDir(t) t.Parallel() htmlUDir := filepath.Join(dir, "htmlunformatted") htmlU := filepath.Join(htmlUDir, "htmlunformatted.go") htmlUTest := filepath.Join(htmlUDir, "htmlunformatted_test.go") htmlUProfile := filepath.Join(htmlUDir, "htmlunformatted.cov") htmlUHTML := filepath.Join(htmlUDir, "htmlunformatted.html") if err := os.Mkdir(htmlUDir, 0777); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 07 16:54:28 UTC 2023 - 18.4K bytes - Viewed (0) -
cni/pkg/install/install_test.go
// Create existing config file if specified in test case cniConfigFilePath := filepath.Join(cniNetDir, c.configFilename) if err := file.AtomicCopy(filepath.Join("testdata", c.existingConfigFilename), cniNetDir, c.configFilename); err != nil { t.Fatal(err) } // Create existing binary files if err := os.WriteFile(filepath.Join(cniBinDir, "istio-cni"), []byte{1, 2, 3}, 0o755); err != nil { t.Fatal(err) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 11.1K bytes - Viewed (0)