- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TestFileExists (0.17 sec)
-
cmd/kubeadm/app/phases/certs/renewal/readwriter_test.go
pkiutil.EncodeCertPEM(cert), ) if err := clientcmd.WriteToFile(*config, filepath.Join(dir, name)); err != nil { t.Fatalf("couldn't write out certificate") } return cert } func TestFileExists(t *testing.T) { tmpdir, err := os.MkdirTemp("", "") if err != nil { t.Fatalf("Couldn't create tmpdir: %v", err) } defer func() { err = os.RemoveAll(tmpdir) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 15:17:24 UTC 2024 - 9.5K bytes - Viewed (0) -
pkg/kubelet/kubeletconfig/util/files/files_test.go
err: missingFolderError, }, } for _, c := range cases { t.Run(c.desc, func(t *testing.T) { c.run(t, &utilfs.DefaultFs{}) }) } } func TestFileExists(t *testing.T) { fn := func(fs utilfs.Filesystem, dir string, c *test) []error { ok, err := FileExists(fs, filepath.Join(dir, "foo")) if err != nil { return []error{err} } if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Dec 07 11:36:13 UTC 2022 - 11.7K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem_test.cc
EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK); if (!status.ok()) GTEST_SKIP() << "GetFileSize() not supported: " << status; EXPECT_EQ(size, test_data.size()); } TEST_P(ModularFileSystemTest, TestFileExists) { const std::string filepath = GetURIForPath("a_file"); std::unique_ptr<WritableFile> file; Status status = env_->NewWritableFile(filepath, &file); if (!status.ok())
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 27 20:25:58 UTC 2022 - 71K bytes - Viewed (0)