Files
weatherfeeder/internal/sources/spc/fixture_test.go
Eric Rakestraw 5d7f604a2c
All checks were successful
ci/woodpecker/push/build-image Pipeline was successful
Implement remaining cleanup items prior to the next release
2026-06-11 10:17:49 -05:00

18 lines
314 B
Go

package spc
import (
"os"
"path/filepath"
"testing"
)
func readSPCTestFixture(t *testing.T, name string) []byte {
t.Helper()
path := filepath.Join("..", "..", "providers", "spc", "testdata", name)
raw, err := os.ReadFile(path)
if err != nil {
t.Fatalf("read fixture %s: %v", path, err)
}
return raw
}