- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 102 for tempdir (0.1 sec)
-
build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/PublicAPIRulesTest.groovy
import org.gradle.api.Incubating import spock.lang.Specification import spock.lang.TempDir import javax.inject.Inject class PublicAPIRulesTest extends Specification { private final static String TEST_INTERFACE_NAME = 'org.gradle.api.ApiTest' private final static String TEST_INTERFACE_SIMPLE_NAME = 'ApiTest' @TempDir File tmp File sourceFile BinaryCompatibilityRepository repository
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Dec 01 20:12:19 UTC 2023 - 16K bytes - Viewed (0) -
cmd/data-usage_test.go
"path/filepath" "testing" "time" "github.com/minio/minio/internal/cachevalue" ) type usageTestFile struct { name string size int } func TestDataUsageUpdate(t *testing.T) { base := t.TempDir() const bucket = "bucket" files := []usageTestFile{ {name: "rootfile", size: 10000}, {name: "rootfile2", size: 10000}, {name: "dir1/d1file", size: 2000}, {name: "dir2/d2file", size: 300},
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Oct 04 22:23:33 UTC 2024 - 14.7K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/FindBrokenInternalLinksTest.groovy
* limitations under the License. */ package gradlebuild.docs import org.gradle.testkit.runner.GradleRunner import spock.lang.Specification import spock.lang.TempDir class FindBrokenInternalLinksTest extends Specification { @TempDir private File projectDir private File docsRoot private File sampleDoc private File linkErrors private setup() {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Aug 21 08:08:05 UTC 2024 - 8.3K bytes - Viewed (0) -
cni/pkg/iptables/iptables_e2e_test.go
assert.NoError(t, exec.Command("ip", "addr", "add", "240.240.240.240/32", "dev", "lo").Run()) // Put a new file we have permission to access over xtables.lock xtables := filepath.Join(t.TempDir(), "xtables.lock") _, err := os.Create(xtables) assert.NoError(t, err) _ = os.Mkdir("/run", 0o777) _ = mountns.BindMount(xtables, "/run/xtables.lock") }) } func iptablesSave(t *testing.T) string {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Oct 15 15:39:28 UTC 2024 - 2.9K bytes - Viewed (0) -
istioctl/pkg/validate/validate_test.go
t.Helper() tempDir, err := os.MkdirTemp("", "TestValidateCommand") if err != nil { t.Fatal(err) } for name, content := range files { filePath := filepath.Join(tempDir, name) if err := os.WriteFile(filePath, []byte(content), 0o644); err != nil { t.Fatal(err) } } return tempDir } func TestValidateCommand(t *testing.T) {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Aug 02 16:18:14 UTC 2024 - 21.4K bytes - Viewed (0) -
cni/pkg/log/uds_test.go
"istio.io/istio/cni/pkg/constants" istiolog "istio.io/istio/pkg/log" "istio.io/istio/pkg/ptr" "istio.io/istio/pkg/test/util/assert" ) func TestUDSLog(t *testing.T) { // Start UDS log server udsSockDir := t.TempDir() udsSock := filepath.Join(udsSockDir, "cni.sock") logger := NewUDSLogger(istiolog.DebugLevel) stop := make(chan struct{}) defer close(stop) assert.NoError(t, logger.StartUDSLogServer(udsSock, stop))
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Jun 12 16:26:28 UTC 2024 - 4.1K bytes - Viewed (0) -
internal/lock/lock_test.go
} }() _, err = LockedOpenFile(f.Name(), os.O_APPEND, 0o600) if err == nil { t.Fatal("Should fail here") } } // Tests lock directory fail. func TestLockDirFail(t *testing.T) { d := t.TempDir() _, err := LockedOpenFile(d, os.O_APPEND, 0o600) if err == nil { t.Fatal("Should fail here") } } // Tests rwlock methods. func TestRWLockedFile(t *testing.T) { f, err := os.CreateTemp("", "lock")
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 3.6K bytes - Viewed (0) -
cni/pkg/plugin/plugin_dryrun_test.go
} for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { // TODO(bianpengyuan): How do we test ipv6 rules? getNs = generateMockGetNsFunc(testSandboxDirectory) tmpDir := t.TempDir() outputFilePath := filepath.Join(tmpDir, "output.txt") if _, err := os.Create(outputFilePath); err != nil { t.Fatalf("Failed to create temp file for IPTables rule output: %v", err) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Aug 27 16:44:45 UTC 2024 - 8.5K bytes - Viewed (0) -
cmd/xl-storage_test.go
tmpDir := t.TempDir() disk, err := newLocalXLStorage(tmpDir) if err != nil { t.Fatal(err) } disk.MakeVol(context.Background(), volume) if _, err := disk.readMetadata(context.Background(), pathJoin(tmpDir, volume, object)); err != errFileNameTooLong {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 66.7K bytes - Viewed (0) -
misc/go_android_exec/main.go
func runMain() (int, error) { // Concurrent use of adb is flaky, so serialize adb commands. // See https://github.com/golang/go/issues/23795 or // https://issuetracker.google.com/issues/73230216. lockPath := filepath.Join(os.TempDir(), "go_android_exec-adb-lock") lock, err := os.OpenFile(lockPath, os.O_CREATE|os.O_RDWR, 0666) if err != nil { return 0, err } defer lock.Close()
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Aug 21 17:46:57 UTC 2023 - 15.3K bytes - Viewed (0)