- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestAnyLevelAlloc (0.19 sec)
-
src/log/slog/value_test.go
x = AnyValue(p).Any() })) if a != 0 { t.Errorf("got %d allocs, want zero", a) } _ = u _ = f _ = b _ = s _ = x _ = tm } func TestAnyLevelAlloc(t *testing.T) { // Because typical Levels are small integers, // they are zero-alloc. var a Value x := LevelDebug + 100 wantAllocs(t, 0, func() { a = AnyValue(x) }) _ = a }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:12:08 UTC 2024 - 6.9K bytes - Viewed (0)