glide up
This commit is contained in:
		
							
								
								
									
										16
									
								
								vendor/github.com/go-kit/kit/log/stdlib_test.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								vendor/github.com/go-kit/kit/log/stdlib_test.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -35,9 +35,9 @@ func TestStdlibAdapterUsage(t *testing.T) {
 | 
			
		||||
		log.Ldate:                              "ts=" + date + " msg=hello\n",
 | 
			
		||||
		log.Ltime:                              "ts=" + time + " msg=hello\n",
 | 
			
		||||
		log.Ldate | log.Ltime:                  "ts=\"" + date + " " + time + "\" msg=hello\n",
 | 
			
		||||
		log.Lshortfile:                         "caller=stdlib_test.go:44 msg=hello\n",
 | 
			
		||||
		log.Lshortfile | log.Ldate:             "ts=" + date + " caller=stdlib_test.go:44 msg=hello\n",
 | 
			
		||||
		log.Lshortfile | log.Ldate | log.Ltime: "ts=\"" + date + " " + time + "\" caller=stdlib_test.go:44 msg=hello\n",
 | 
			
		||||
		log.Lshortfile:                         "file=stdlib_test.go:44 msg=hello\n",
 | 
			
		||||
		log.Lshortfile | log.Ldate:             "ts=" + date + " file=stdlib_test.go:44 msg=hello\n",
 | 
			
		||||
		log.Lshortfile | log.Ldate | log.Ltime: "ts=\"" + date + " " + time + "\" file=stdlib_test.go:44 msg=hello\n",
 | 
			
		||||
	} {
 | 
			
		||||
		buf.Reset()
 | 
			
		||||
		stdlog.SetFlags(flag)
 | 
			
		||||
@@ -58,11 +58,11 @@ func TestStdLibAdapterExtraction(t *testing.T) {
 | 
			
		||||
		"2009/01/23 01:23:23: hello":                       "ts=\"2009/01/23 01:23:23\" msg=hello\n",
 | 
			
		||||
		"01:23:23: hello":                                  "ts=01:23:23 msg=hello\n",
 | 
			
		||||
		"2009/01/23 01:23:23.123123: hello":                "ts=\"2009/01/23 01:23:23.123123\" msg=hello\n",
 | 
			
		||||
		"2009/01/23 01:23:23.123123 /a/b/c/d.go:23: hello": "ts=\"2009/01/23 01:23:23.123123\" caller=/a/b/c/d.go:23 msg=hello\n",
 | 
			
		||||
		"01:23:23.123123 /a/b/c/d.go:23: hello":            "ts=01:23:23.123123 caller=/a/b/c/d.go:23 msg=hello\n",
 | 
			
		||||
		"2009/01/23 01:23:23 /a/b/c/d.go:23: hello":        "ts=\"2009/01/23 01:23:23\" caller=/a/b/c/d.go:23 msg=hello\n",
 | 
			
		||||
		"2009/01/23 /a/b/c/d.go:23: hello":                 "ts=2009/01/23 caller=/a/b/c/d.go:23 msg=hello\n",
 | 
			
		||||
		"/a/b/c/d.go:23: hello":                            "caller=/a/b/c/d.go:23 msg=hello\n",
 | 
			
		||||
		"2009/01/23 01:23:23.123123 /a/b/c/d.go:23: hello": "ts=\"2009/01/23 01:23:23.123123\" file=/a/b/c/d.go:23 msg=hello\n",
 | 
			
		||||
		"01:23:23.123123 /a/b/c/d.go:23: hello":            "ts=01:23:23.123123 file=/a/b/c/d.go:23 msg=hello\n",
 | 
			
		||||
		"2009/01/23 01:23:23 /a/b/c/d.go:23: hello":        "ts=\"2009/01/23 01:23:23\" file=/a/b/c/d.go:23 msg=hello\n",
 | 
			
		||||
		"2009/01/23 /a/b/c/d.go:23: hello":                 "ts=2009/01/23 file=/a/b/c/d.go:23 msg=hello\n",
 | 
			
		||||
		"/a/b/c/d.go:23: hello":                            "file=/a/b/c/d.go:23 msg=hello\n",
 | 
			
		||||
	} {
 | 
			
		||||
		buf.Reset()
 | 
			
		||||
		fmt.Fprint(writer, input)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user