Skip to content

Commit b442515

Browse files
committed
add provider package tests
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
1 parent 72f0550 commit b442515

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

provider/provider_test.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package provider
2+
3+
import (
4+
"testing"
5+
)
6+
7+
func TestProviderType(t *testing.T) {
8+
if None.String() != "" {
9+
t.Fatal("None provider type should be empty string")
10+
}
11+
if Local.String() != "Local" {
12+
t.Fatal("Local provider type should be 'Local'")
13+
}
14+
if Remote.String() != "Remote" {
15+
t.Fatal("Remote provider type should be 'Remote'")
16+
}
17+
}

0 commit comments

Comments
 (0)