- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for testPrintf (0.22 sec)
-
src/cmd/cgo/internal/test/cgo_test.go
func TestMultipleAssign(t *testing.T) { testMultipleAssign(t) } func TestNaming(t *testing.T) { testNaming(t) } func TestPanicFromC(t *testing.T) { testPanicFromC(t) } func TestPrintf(t *testing.T) { testPrintf(t) } func TestReturnAfterGrow(t *testing.T) { testReturnAfterGrow(t) } func TestReturnAfterGrowFromGo(t *testing.T) { testReturnAfterGrowFromGo(t) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 17 21:53:11 UTC 2023 - 6.4K bytes - Viewed (0) -
src/cmd/cgo/internal/test/test.go
} _, e = C.g2(C.EINVAL, C._expA, C._expB, C._expC, C._expD) if e != syscall.EINVAL { t.Errorf("got %q, expect %q", e, syscall.EINVAL) } } // issue 3945 func testPrintf(t *testing.T) { C.say() } // issue 4054 var issue4054a = []int{C.A, C.B, C.C, C.D, C.E, C.F, C.G, C.H, C.I, C.J} // issue 4339 func test4339(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 48.5K bytes - Viewed (0) -
src/go/printer/performance_test.go
initialize() } b.ReportAllocs() b.SetBytes(fileSize) for i := 0; i < b.N; i++ { testprint(io.Discard, fileNode) } } func BenchmarkPrintDecl(b *testing.B) { if declNode == nil { initialize() } b.ReportAllocs() b.SetBytes(declSize) for i := 0; i < b.N; i++ { testprint(io.Discard, declNode) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 09 15:10:10 UTC 2022 - 1.8K bytes - Viewed (0) -
src/log/log_test.go
if got := Default(); got != std { t.Errorf("Default [%p] should be std [%p]", got, std) } } func TestAll(t *testing.T) { for _, testcase := range tests { testPrint(t, testcase.flag, testcase.prefix, testcase.pattern, false) testPrint(t, testcase.flag, testcase.prefix, testcase.pattern, true) } } func TestOutput(t *testing.T) { const testString = "test" var b strings.Builder l := New(&b, "", 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 21 20:04:37 UTC 2023 - 7.4K bytes - Viewed (0) -
istioctl/pkg/authz/analyzer_test.go
} for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if _, wanted2 := NewAnalyzer(tt.input); wanted2 != nil { t.Errorf("Wanted %v, got %v", tt.wantErr, wanted2) } }) } } func TestPrint(t *testing.T) { a := &Analyzer{ listenerDump: &envoy_admin.ListenersConfigDump{ DynamicListeners: []*envoy_admin.ListenersConfigDump_DynamicListener{ { Name: "10.102.11.148_15021",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 2.8K bytes - Viewed (0) -
src/go/ast/print_test.go
i := 0 for _, line := range lines { line = strings.TrimSpace(line) if line != "" { lines[i] = line i++ } } return strings.Join(lines[0:i], "\n") } func TestPrint(t *testing.T) { var buf strings.Builder for _, test := range tests { buf.Reset() if err := Fprint(&buf, nil, test.x, nil); err != nil { t.Errorf("Fprint failed: %s", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 09 15:35:30 UTC 2022 - 1.8K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/printer_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package syntax import ( "fmt" "io" "os" "strings" "testing" ) func TestPrint(t *testing.T) { if testing.Short() { t.Skip("skipping test in short mode") } ast, _ := ParseFile(*src_, func(err error) { t.Error(err) }, nil, 0) if ast != nil { Fprint(testOut(), ast, LineForm)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 31 17:08:18 UTC 2023 - 7.6K bytes - Viewed (0) -
src/fmt/fmt_test.go
func zeroFill(prefix string, width int, suffix string) string { return prefix + strings.Repeat("0", width-len(suffix)) + suffix } func TestSprintf(t *testing.T) { for _, tt := range fmtTests { s := Sprintf(tt.fmt, tt.val) i := strings.Index(tt.out, "PTR") if i >= 0 && i < len(s) { var pattern, chars string switch {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:55 UTC 2024 - 58.6K bytes - Viewed (0)