- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for builder (0.28 sec)
-
src/cmd/cgo/godefs.go
"fmt" "go/ast" "go/printer" "go/token" "os" "path/filepath" "strings" ) // godefs returns the output for -godefs mode. func (p *Package) godefs(f *File, args []string) string { var buf strings.Builder fmt.Fprintf(&buf, "// Code generated by cmd/cgo -godefs; DO NOT EDIT.\n") fmt.Fprintf(&buf, "// %s %s\n", filepath.Base(args[0]), strings.Join(args[1:], " ")) fmt.Fprintf(&buf, "\n")
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Sep 08 14:33:35 GMT 2022 - 4.5K bytes - Viewed (0) -
src/cmd/asm/internal/asm/pseudo_test.go
{ 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 { for _, test := range cat.tests { parser.allowABI = cat.allowABI parser.errorCount = 0 parser.lineNum++
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/api/api_test.go
_, err := w.ImportFrom("p", "", 0) if _, nogo := err.(*build.NoGoError); !nogo { t.Errorf("expected *build.NoGoError, got %T", err) } } } func TestIssue41358(t *testing.T) { if *flagCheck { // slow, not worth repeating in -check t.Skip("skipping with -check set") } testenv.MustHaveGoBuild(t) context := new(build.Context) *context = build.Default
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/bufio/bufio_test.go
} func TestWriteInvalidRune(t *testing.T) { // Invalid runes, including negative ones, should be written as the // replacement character. for _, r := range []rune{-1, utf8.MaxRune + 1} { var buf strings.Builder w := NewWriter(&buf) w.WriteRune(r) w.Flush() if s := buf.String(); s != "\uFFFD" { t.Errorf("WriteRune(%d) wrote %q, not replacement character", r, s) } } }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Feb 10 18:56:01 GMT 2023 - 51.5K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue1435.go
} if testing.Short() && testenv.Builder() != "" && os.Getenv("USER") == "swarming" { // The Go build system's swarming user is known not to be root. // Unfortunately, it sometimes appears as root due the current // implementation of a no-network check using 'unshare -n -r'. // Since this test does need root to work, we need to skip it. t.Skip("skipping root only test on a non-root builder") } if runtime.GOOS == "linux" {
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri Jul 28 21:31:41 GMT 2023 - 7.5K bytes - Viewed (0) -
src/cmd/cgo/ast.go
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/bytes/bytes_test.go
bmbuf = make([]byte, n) } b.SetBytes(int64(n)) f(b, n) }) } } var indexSizes = []int{10, 32, 4 << 10, 4 << 20, 64 << 20} var isRaceBuilder = strings.HasSuffix(testenv.Builder(), "-race") func BenchmarkIndexByte(b *testing.B) { benchBytes(b, indexSizes, bmIndexByte(IndexByte)) } func BenchmarkIndexBytePortable(b *testing.B) {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Jan 24 16:07:25 GMT 2024 - 56.2K bytes - Viewed (0) -
misc/go_android_exec/exitcode_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !(windows || js || wasip1) package main import ( "regexp" "strings" "testing" ) func TestExitCodeFilter(t *testing.T) { // Write text to the filter one character at a time. var out strings.Builder f, exitStr := newExitCodeFilter(&out)
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed May 03 14:54:58 GMT 2023 - 2.1K bytes - Viewed (0) -
src/bytes/buffer.go
// String returns the contents of the unread portion of the buffer // as a string. If the [Buffer] is a nil pointer, it returns "<nil>". // // To build strings more efficiently, see the strings.Builder type. func (b *Buffer) String() string { if b == nil { // Special case, useful in debugging. return "<nil>" } return string(b.buf[b.off:]) }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Oct 13 17:10:31 GMT 2023 - 15.7K bytes - Viewed (0) -
src/archive/zip/zip_test.go
"hash" "internal/testenv" "io" "runtime" "sort" "strings" "testing" "time" ) func TestOver65kFiles(t *testing.T) { if testing.Short() && testenv.Builder() == "" { t.Skip("skipping in short mode") } buf := new(strings.Builder) w := NewWriter(buf) const nFiles = (1 << 16) + 42 for i := 0; i < nFiles; i++ { _, err := w.CreateHeader(&FileHeader{ Name: fmt.Sprintf("%d.dat", i),
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)