mirror of https://github.com/helm/helm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
470 B
26 lines
470 B
9 years ago
|
package support
|
||
9 years ago
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
var _ fmt.Stringer = Message{}
|
||
|
|
||
|
func TestMessage(t *testing.T) {
|
||
|
m := Message{ErrorSev, "Foo"}
|
||
|
if m.String() != "[ERROR] Foo" {
|
||
|
t.Errorf("Unexpected output: %s", m.String())
|
||
|
}
|
||
|
|
||
|
m = Message{WarningSev, "Bar"}
|
||
|
if m.String() != "[WARNING] Bar" {
|
||
|
t.Errorf("Unexpected output: %s", m.String())
|
||
|
}
|
||
9 years ago
|
|
||
|
m = Message{InfoSev, "FooBar"}
|
||
|
if m.String() != "[INFO] FooBar" {
|
||
|
t.Errorf("Unexpected output: %s", m.String())
|
||
|
}
|
||
9 years ago
|
}
|