Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for testPrintf (0.18 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
Back to top