- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 270 for Fatal (0.13 sec)
-
src/cmd/buildid/buildid.go
id, err := buildid.ReadFile(file) if err != nil { log.Fatal(err) } if !*wflag { fmt.Printf("%s\n", id) return } // Keep in sync with src/cmd/go/internal/work/buildid.go:updateBuildID f, err := os.Open(file) if err != nil { log.Fatal(err) } matches, hash, err := buildid.FindAndHash(f, id, 0) f.Close() if err != nil { log.Fatal(err) }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Jun 06 14:30:53 GMT 2022 - 1.5K bytes - Viewed (0) -
src/cmd/cgo/internal/swig/testdata/callback/main.go
package main import ( "fmt" "os" ) func main() { if len(os.Args) != 2 { fatal("usage: callback testname") } switch os.Args[1] { default: fatal("unknown test %q", os.Args[1]) case "Call": testCall() case "Callback": testCallback() } println("OK") } func fatal(f string, args ...any) { fmt.Fprintln(os.Stderr, fmt.Sprintf(f, args...)) os.Exit(1) }
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:07 GMT 2023 - 1K bytes - Viewed (0) -
cmd/ftp-server.go
for _, arg := range args { tokens := strings.SplitN(arg, "=", 2) if len(tokens) != 2 { logger.Fatal(fmt.Errorf("invalid arguments passed to --ftp=%s", arg), "unable to start FTP server") } switch tokens[0] { case "address": host, portStr, err := net.SplitHostPort(tokens[1]) if err != nil { logger.Fatal(fmt.Errorf("invalid arguments passed to --ftp=%s (%v)", arg, err), "unable to start FTP server") }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat Mar 09 03:07:08 GMT 2024 - 4.8K bytes - Viewed (2) -
src/cmd/cgo/internal/swig/testdata/stdio/main.go
func main() { if x := int(C.F()); x != 1 { fatal("x = %d, want 1", x) } // Open this file itself and verify that the first few characters are // as expected. f := Fopen("main.go", "r") if f.Swigcptr() == 0 { fatal("fopen failed") } if Fgetc(f) != '/' || Fgetc(f) != '/' || Fgetc(f) != ' ' || Fgetc(f) != 'C' { fatal("read unexpected characters") } if Fclose(f) != 0 { fatal("fclose failed") } println("OK")
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:07 GMT 2023 - 975 bytes - Viewed (0) -
cni/pkg/iptables/iptables_test.go
err := iptConfigurator.CreateInpodRules(&probeSNATipv4) if err != nil { t.Fatal(err) } compareToGolden(t, false, tt.name, ext.ExecutedAll) *ext = dep.DependenciesStub{} // run another time to make sure we are idempotent err = iptConfigurator.CreateInpodRules(&probeSNATipv4) if err != nil { t.Fatal(err) } compareToGolden(t, false, tt.name, ext.ExecutedAll) }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 3.7K bytes - Viewed (0) -
src/bytes/compare_test.go
b2 := []byte("Hello Gophers!") for i := 0; i < b.N; i++ { if Compare(b1, b2) != 0 { b.Fatal("b1 != b2") } } } func BenchmarkCompareBytesToNil(b *testing.B) { b1 := []byte("Hello Gophers!") var b2 []byte for i := 0; i < b.N; i++ { if Compare(b1, b2) != 1 { b.Fatal("b1 > b2 failed") } } } func BenchmarkCompareBytesEmpty(b *testing.B) { b1 := []byte("")
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Jul 13 23:11:42 GMT 2023 - 6.8K bytes - Viewed (0) -
istioctl/pkg/waypoint/waypoint_test.go
}) client, err := ctx.CLIClient() if err != nil { t.Fatal(err) } for _, gw := range tt.gateways { _, _ = client.GatewayAPI().GatewayV1().Gateways(gw.Namespace).Create(context.Background(), gw, metav1.CreateOptions{}) } defaultFile, err := os.ReadFile(fmt.Sprintf("testdata/waypoint/%s", tt.expectedOutFile)) if err != nil { t.Fatal(err) } expectedOut := string(defaultFile)
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Apr 04 15:53:09 GMT 2024 - 4.4K bytes - Viewed (0) -
operator/cmd/mesh/profile-dump_test.go
outPath := filepath.Join(testDataDir, "output", tt.desc+".yaml") got, err := runProfileDump(inPath, tt.configPath, snapshotCharts, "") if err != nil { t.Fatal(err) } // installPackagePath may change, we will remove it for consistent output got = installPackagePathRegex.ReplaceAllString(got, "") if refreshGoldenFiles() {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Jan 20 11:44:25 GMT 2022 - 3.7K bytes - Viewed (0) -
src/bytes/reader_test.go
// should not happen t.Fatal(err) } tt.f(reader) err := reader.UnreadRune() if err == nil { t.Errorf("Unreading after %s: expected error", tt.name) } } } func TestReaderDoubleUnreadRune(t *testing.T) { buf := NewBuffer([]byte("groucho")) if _, _, err := buf.ReadRune(); err != nil { // should not happen t.Fatal(err) } if err := buf.UnreadByte(); err != nil {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Dec 13 18:45:54 GMT 2021 - 8K bytes - Viewed (0) -
cmd/server-startup-msg_test.go
ctx, cancel := context.WithCancel(context.Background()) defer cancel() obj, fsDir, err := prepareFS(ctx) if err != nil { t.Fatal(err) } defer os.RemoveAll(fsDir) if err = newTestConfig(globalMinioDefaultRegion, obj); err != nil { t.Fatal(err) } apiEndpoints := []string{"http://127.0.0.1:9000"} printServerCommonMsg(apiEndpoints) } // Tests print cli access message.
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Jun 20 00:53:08 GMT 2023 - 4K bytes - Viewed (0)