Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for runLogrTest (0.1 sec)

  1. pkg/log/logr_test.go

    	}
    }
    
    func TestLogr(t *testing.T) {
    	t.Run("newlines not duplicated", func(t *testing.T) {
    		lines := runLogrTest(t, func(l logr.Logger) {
    			l.Info("msg\n")
    		})
    		mustMatchLength(t, 1, lines)
    		mustRegexMatchString(t, lines[0], "msg")
    	})
    	t.Run("info level log is output", func(t *testing.T) {
    		lines := runLogrTest(t, func(l logr.Logger) {
    			l.Info("msg")
    		})
    		mustMatchLength(t, 1, lines)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top