Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestDebugLog (0.09 sec)

  1. src/runtime/debuglog_test.go

    	begin := regexp.MustCompile(`(?m)^>> begin log \d+ <<\n`)
    	x = begin.ReplaceAllString(x, "")
    	prefix := regexp.MustCompile(`(?m)^\[[^]]+\]`)
    	x = prefix.ReplaceAllString(x, "[]")
    	return x
    }
    
    func TestDebugLog(t *testing.T) {
    	skipDebugLog(t)
    	runtime.ResetDebugLog()
    	runtime.Dlog().S("testing").End()
    	got := dlogCanonicalize(runtime.DumpDebugLog())
    	if want := "[] testing\n"; got != want {
    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