mirror of https://github.com/docker/docs.git
add provider package tests
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
parent
72f05505fa
commit
b442515491
|
@ -0,0 +1,17 @@
|
||||||
|
package provider
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestProviderType(t *testing.T) {
|
||||||
|
if None.String() != "" {
|
||||||
|
t.Fatal("None provider type should be empty string")
|
||||||
|
}
|
||||||
|
if Local.String() != "Local" {
|
||||||
|
t.Fatal("Local provider type should be 'Local'")
|
||||||
|
}
|
||||||
|
if Remote.String() != "Remote" {
|
||||||
|
t.Fatal("Remote provider type should be 'Remote'")
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue