- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestFlagAndPrefixSetting (0.26 sec)
-
src/log/log_test.go
var wg sync.WaitGroup wg.Add(100) for i := 0; i < 100; i++ { go func() { defer wg.Done() l.SetFlags(0) l.Output(0, "") }() } wg.Wait() } func TestFlagAndPrefixSetting(t *testing.T) { var b bytes.Buffer l := New(&b, "Test:", LstdFlags) f := l.Flags() if f != LstdFlags { t.Errorf("Flags 1: expected %x got %x", LstdFlags, f) } l.SetFlags(f | Lmicroseconds)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 21 20:04:37 UTC 2023 - 7.4K bytes - Viewed (0)