config: add test for empty file

This commit is contained in:
Mitchell Hashimoto 2014-09-15 09:41:00 -07:00
parent c9fd910c41
commit 4fdb6d1b52
2 changed files with 11 additions and 0 deletions

View File

@ -50,6 +50,17 @@ func TestLoadBasic(t *testing.T) {
}
}
func TestLoadBasic_empty(t *testing.T) {
c, err := Load(filepath.Join(fixtureDir, "empty.tf"))
if err != nil {
t.Fatalf("err: %s", err)
}
if c == nil {
t.Fatal("config should not be nil")
}
}
func TestLoadBasic_import(t *testing.T) {
// Skip because we disabled importing
t.Skip()

View File