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
docs: add documentation to core functions and structs
13 lines
260 B
Go
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.")
|
|
}
|
|
}
|