spud/service_definition/service_definition_test.go
Marc Cataford 5a18a5bf44
All checks were successful
Pull-Request / tests (pull_request) Successful in 1m6s
Pull-Request / static-analysis (pull_request) Successful in 1m31s
Pull-Request / post-run (pull_request) Successful in 24s
Push / pre-run (push) Successful in 28s
Push / tests (push) Successful in 1m3s
Push / static-analysis (push) Successful in 1m29s
Push / post-run (push) Successful in 38s
refactor: isolate + inject DefinitionFetcher
docs: add documentation to core functions and structs
2024-11-10 23:05:57 -05:00

13 lines
260 B
Go

package service_definition
import (
"testing"
)
func TestGetServiceDefinitionFromFileDoesNotExist(t *testing.T) {
_, err := NewDefinitionFetcher().GetDefinition(t.TempDir() + "/not-a-file.yml")
if err == nil {
t.Errorf("Expected error, got nil.")
}
}