mirror of
https://github.com/rancher/os.git
synced 2025-09-02 23:34:57 +00:00
move dependencies to vendor
This commit is contained in:
19
vendor/github.com/docker/machine/log/log_test.go
generated
vendored
Normal file
19
vendor/github.com/docker/machine/log/log_test.go
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
package log
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestTerminalLoggerWithFields(t *testing.T) {
|
||||
logger := TerminalLogger{}
|
||||
withFieldsLogger := logger.WithFields(Fields{
|
||||
"foo": "bar",
|
||||
"spam": "eggs",
|
||||
})
|
||||
withFieldsTerminalLogger, ok := withFieldsLogger.(TerminalLogger)
|
||||
if !ok {
|
||||
t.Fatal("Type assertion to TerminalLogger failed")
|
||||
}
|
||||
expectedOutFields := "\t\t foo=bar spam=eggs"
|
||||
if withFieldsTerminalLogger.fieldOut != expectedOutFields {
|
||||
t.Fatalf("Expected %q, got %q", expectedOutFields, withFieldsTerminalLogger.fieldOut)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user