- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for mustRegexMatchString (0.26 sec)
-
pkg/log/logr_test.go
matchBool(t, true, l.V(4).Enabled()) matchBool(t, true, l.V(6).Enabled()) }) mustMatchLength(t, 5, lines) mustRegexMatchString(t, lines[0], "0") mustRegexMatchString(t, lines[1], "1") mustRegexMatchString(t, lines[2], "2") mustRegexMatchString(t, lines[3], "3") mustRegexMatchString(t, lines[4], "4") }) } func matchBool(t *testing.T, want bool, got bool) { t.Helper() if want != got {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 4.1K bytes - Viewed (0) -
pkg/log/scope_test.go
// s should be unmodified. s.Debug("Hello") _ = Sync() }) if err != nil { t.Errorf("Got error '%v', expected success", err) } mustRegexMatchString(t, lines[0], `Hello foo=override baz=123 qux=0.123`) mustRegexMatchString(t, lines[1], "Hello$") } func TestScopeJSON(t *testing.T) { const name = "TestScope" const desc = "Desc" s := RegisterScope(name, desc)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jan 03 17:36:09 UTC 2024 - 11K bytes - Viewed (0) -
pkg/log/default_test.go
WithLabels("foo", "bar").WithLabels("baz", 123, "qux", 0.123).Error("Hello") _ = Sync() }) if err != nil { t.Errorf("Got error '%v', expected success", err) } mustRegexMatchString(t, lines[0], `Hello foo=bar baz=123 qux=0.123`) } func TestLogWithTime(t *testing.T) { getLogTime := func(t *testing.T, line string) time.Time { type logEntry struct { Time time.Time `json:"time"`
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 7.4K bytes - Viewed (0)