- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestLevelVar (0.1 sec)
-
src/log/slog/level_test.go
{LevelDebug, "DEBUG"}, {LevelDebug - 2, "DEBUG-2"}, } { got := test.in.String() if got != test.want { t.Errorf("%d: got %s, want %s", test.in, got, test.want) } } } func TestLevelVar(t *testing.T) { var al LevelVar if got, want := al.Level(), LevelInfo; got != want { t.Errorf("got %v, want %v", got, want) } al.Set(LevelWarn) if got, want := al.Level(), LevelWarn; got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 20:44:14 UTC 2024 - 4K bytes - Viewed (0)