- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 52 for shouldn (0.29 sec)
-
src/cmd/api/api_test.go
ok: true, out: "", }, // Test that a feature required on a subset of ports is implicitly satisfied // by the same feature being implemented on all ports. That is, it shouldn't // say "pkg syscall (darwin-amd64), type RawSockaddrInet6 struct" is missing. // See https://go.dev/issue/4303. { name: "contexts reconverging after api/next/* update", features: []string{ "A",
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Jan 04 17:31:12 GMT 2024 - 7.1K bytes - Viewed (0) -
src/bytes/boundary_test.go
) // This file tests the situation where byte operations are checking // data very near to a page boundary. We want to make sure those // operations do not read across the boundary and cause a page // fault where they shouldn't. // These tests run only on linux. The code being tested is // not OS-specific, so it does not need to be tested on all // operating systems. // dangerousSlice returns a slice which is immediately
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Nov 30 20:05:58 GMT 2023 - 2.8K bytes - Viewed (0) -
src/bufio/example_test.go
func ExampleScanner_Bytes() { scanner := bufio.NewScanner(strings.NewReader("gopher")) for scanner.Scan() { fmt.Println(len(scanner.Bytes()) == 6) } if err := scanner.Err(); err != nil { fmt.Fprintln(os.Stderr, "shouldn't see an error scanning a string") } // Output: // true } // Use a Scanner to implement a simple word-count utility by scanning the // input as a sequence of space-delimited tokens.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Oct 23 09:06:30 GMT 2023 - 4.9K bytes - Viewed (0) -
src/archive/zip/zip_test.go
} } if err := w.Close(); err != nil { t.Fatal(err) } } } // 16k-1 records shouldn't make a zip64: t.Run("uint16max-1_NoZip64", func(t *testing.T) { t.Parallel() if generatesZip64(t, gen(0xfffe)) { t.Error("unexpected zip64") } }) // 16k records should make a zip64: t.Run("uint16max_Zip64", func(t *testing.T) { t.Parallel() if !generatesZip64(t, gen(0xffff)) {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Mar 27 18:23:49 GMT 2024 - 19.5K bytes - Viewed (0) -
src/bytes/buffer_test.go
t.Errorf(testname+" (fill 3): err should always be nil, found err == %s", err) } s += string(fub) check(t, testname+" (fill 4)", buf, s) } return s } func TestNewBuffer(t *testing.T) { buf := NewBuffer(testBytes) check(t, "NewBuffer", buf, testString) } var buf Buffer // Calling NewBuffer and immediately shallow copying the Buffer struct // should not result in any allocations.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Apr 26 13:31:36 GMT 2024 - 18.6K bytes - Viewed (0) -
src/cmd/cgo/ast.go
} cg := s.Doc if cg == nil && len(decl.Specs) == 1 { cg = decl.Doc } if cg != nil { if strings.ContainsAny(abspath, "\r\n") { // This should have been checked when the file path was first resolved, // but we double check here just to be sure. fatalf("internal error: ParseGo: abspath contains unexpected newline character: %q", abspath) }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Jun 07 16:54:27 GMT 2023 - 14.3K bytes - Viewed (0) -
src/cmd/asm/internal/asm/pseudo_test.go
allowABI bool tests []errtest }{ { allowABI: false, tests: nonRuntimeTests, }, { allowABI: true, tests: runtimeTests, }, } // Note these errors should be independent of the architecture. // Just run the test with amd64. parser := newParser("amd64") var buf strings.Builder parser.errorWriter = &buf for _, cat := range testcats {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Aug 29 07:48:38 GMT 2023 - 3.1K bytes - Viewed (0) -
src/cmd/cgo/doc.go
particular foo.cgo2.o. To do so, it uses the cgo_import_dynamic and cgo_dynamic_linker directives to learn that the otherwise undefined reference to sin in foo.cgo2.o should be rewritten to refer to the symbol sin with version GLIBC_2.2.5 from the dynamic library "libm.so.6", and the binary should request "/lib/ld-linux.so.2" as its runtime dynamic linker. In external mode, cmd/link does not process any host object files, in
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Sun Mar 31 09:02:45 GMT 2024 - 42.1K bytes - Viewed (0) -
src/archive/zip/reader_test.go
Error error // the error that Opening this file should return } type ZipTestFile struct { Name string Mode fs.FileMode NonUTF8 bool ModTime time.Time Modified time.Time // Information describing expected zip file content. // First, reading the entire content should produce the error ContentErr. // Second, if ContentErr==nil, the content should match Content.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Mar 27 18:23:49 GMT 2024 - 55.3K bytes - Viewed (0) -
src/cmd/asm/internal/asm/operand_test.go
{"(1*4)(DI)", "4(DI)"}, {"(4*4)(BP)", "16(BP)"}, {"(AX)", "(AX)"}, {"(BP)(CX*4)", "(BP)(CX*4)"}, {"(BP*8)", "0(BP*8)"}, {"(BX)", "(BX)"}, {"(SP)", "(SP)"}, {"*AX", "AX"}, // TODO: Should make * illegal here; a simple alias for JMP AX. {"*runtimeĀ·_GetStdHandle(SB)", "*runtime._GetStdHandle(SB)"}, {"-(4+12)(DI)", "-16(DI)"}, {"-1(DI)(BX*1)", "-1(DI)(BX*1)"}, {"-96(DI)(BX*1)", "-96(DI)(BX*1)"},
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Aug 29 18:31:05 GMT 2023 - 23.9K bytes - Viewed (0)