- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 138 for newRule (0.38 sec)
-
cmd/kubeadm/app/util/kubeconfig/kubeconfig_test.go
"failed WriteToDisk with an error:\n\texpected: %s\n\t actual: %s", rt.expected, err, ) } newFile, _ := os.ReadFile(configPath) if !bytes.Equal(newFile, rt.file) { t.Errorf( "failed WriteToDisk config write:\n\texpected: %s\n\t actual: %s", rt.file, newFile, ) } }) } } func TestGetCurrentAuthInfo(t *testing.T) { var testCases = []struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 18 06:49:59 UTC 2023 - 13.3K bytes - Viewed (0) -
platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/incremental/GroovyIncrementalCompilationIntegrationTest.groovy
outputs.snapshot { run 'compileGroovy' } when: src.text = newFile run 'compileGroovy' then: outputs.recompiledClasses(recompileClasses as String[]) outputs.deletedClasses(deletedClasses as String[]) where: action | oldFile | newFile | recompileClasses | deletedClasses
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 7.4K bytes - Viewed (0) -
src/os/pipe_test.go
t.Parallel() var p [2]syscallDescriptor err := syscall.Pipe(p[:]) if err != nil { t.Fatal(err) } // os.NewFile returns a blocking mode file. testCloseWithBlockingRead(t, os.NewFile(uintptr(p[0]), "reader"), os.NewFile(uintptr(p[1]), "writer")) } func TestCloseWithBlockingReadByFd(t *testing.T) { t.Parallel() r, w, err := os.Pipe() if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 23:35:29 UTC 2023 - 12.4K bytes - Viewed (0) -
src/internal/xcoff/file.go
func Open(name string) (*File, error) { f, err := os.Open(name) if err != nil { return nil, err } ff, err := NewFile(f) if err != nil { f.Close() return nil, err } ff.closer = f return ff, nil } // Close closes the File. // If the File was created using NewFile directly instead of Open, // Close has no effect. func (f *File) Close() error { var err error if f.closer != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 12 14:42:29 UTC 2024 - 17.3K bytes - Viewed (0) -
src/cmd/link/internal/ld/elf_test.go
t.Fatalf("%v: %v:\n%s", cmd.Args, err, out) } fi, err := os.Open(binFile) if err != nil { t.Fatalf("failed to open built file: %v", err) } defer fi.Close() elfFile, err := elf.NewFile(fi) if err != nil { t.Skip("The system may not support ELF, skipped.") } section := elfFile.Section(".dynsym") if section == nil { t.Fatal("no dynsym") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 13:44:07 UTC 2024 - 16.6K bytes - Viewed (0) -
src/go/types/context_test.go
nullaryQ = NewSignatureType(nil, nil, []*TypeParam{tparam}, nil, nil, false) } { // type unaryP = func[P any](_ P) tparam := NewTypeParam(NewTypeName(nopos, nil, "P", nil), &emptyInterface) params := NewTuple(NewVar(nopos, nil, "_", tparam)) unaryP = NewSignatureType(nil, nil, []*TypeParam{tparam}, params, nil, false) } ctxt := NewContext() // Update the context with an instantiation of nullaryP.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 2.4K bytes - Viewed (0) -
src/runtime/testdata/testprog/syscalls_linux.go
if errno, ok := err.(syscall.Errno); ok { if errno == syscall.ENOENT || errno == syscall.ESRCH { return false, true, nil } } if err != nil { return false, false, err } status, err := io.ReadAll(os.NewFile(uintptr(fd), statusFile)) if err != nil { return false, false, err } lines := bytes.Split(status, []byte{'\n'}) // Find the State line. stateLineIdx := -1 for i, line := range lines {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 20:00:09 UTC 2024 - 2.2K bytes - Viewed (0) -
src/os/fifo_test.go
t.Fatal(err) } if err := syscall.SetNonblock(p[0], true); err != nil { t.Fatal(err) } f := os.NewFile(uintptr(p[0]), "pipe") nonblock, err := unix.IsNonblock(p[0]) if err != nil { t.Fatal(err) } defer f.Close() if !nonblock { t.Error("pipe blocking after NewFile") } fd := f.Fd() if fd != uintptr(p[0]) { t.Errorf("Fd returned %d, want %d", fd, p[0]) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:47:23 UTC 2024 - 6.1K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/TestKitIntegrationTest.kt
.build() private fun withBuildscript(script: String) = temporaryFolder.newFile("build.gradle.kts").apply { writeText(script) } @Rule @JvmField val temporaryFolder = TemporaryFolder() } """ )
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 14 10:30:09 UTC 2024 - 7.3K bytes - Viewed (0) -
src/os/os_test.go
assertPathError(t, path, err) } // Use TempDir (via newFile) to make sure we're on a local file system, // so that timings are not distorted by latency and caching. // On NFS, timings can be off due to caching of meta-data on // NFS servers (Issue 848). func TestChtimes(t *testing.T) { t.Parallel() f := newFile("TestChtimes", t) defer Remove(f.Name()) f.Write([]byte("hello, world\n"))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 83.1K bytes - Viewed (0)