package state import "testing" func TestTrimExt(t *testing.T) { got := trimExt("foo.yaml") if got != "foo" { t.Fatalf("expected foo, got %s", got) } }