Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestDebugLogTypes (0.16 sec)

  1. src/runtime/debuglog_test.go

    	runtime.ResetDebugLog()
    	runtime.Dlog().S("testing").End()
    	got := dlogCanonicalize(runtime.DumpDebugLog())
    	if want := "[] testing\n"; got != want {
    		t.Fatalf("want %q, got %q", want, got)
    	}
    }
    
    func TestDebugLogTypes(t *testing.T) {
    	skipDebugLog(t)
    	runtime.ResetDebugLog()
    	var varString = strings.Repeat("a", 4)
    	runtime.Dlog().B(true).B(false).I(-42).I16(0x7fff).U64(^uint64(0)).Hex(0xfff).P(nil).S(varString).S("const string").End()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 16:59:26 UTC 2022
    - 4.9K bytes
    - Viewed (0)
Back to top