summaryrefslogtreecommitdiffstats
path: root/pkg/jobparser/testdata_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/jobparser/testdata_test.go')
-rw-r--r--pkg/jobparser/testdata_test.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkg/jobparser/testdata_test.go b/pkg/jobparser/testdata_test.go
new file mode 100644
index 0000000..fb75a50
--- /dev/null
+++ b/pkg/jobparser/testdata_test.go
@@ -0,0 +1,18 @@
+package jobparser
+
+import (
+ "embed"
+ "path/filepath"
+ "testing"
+
+ "github.com/stretchr/testify/require"
+)
+
+//go:embed testdata
+var testdata embed.FS
+
+func ReadTestdata(t *testing.T, name string) []byte {
+ content, err := testdata.ReadFile(filepath.Join("testdata", name))
+ require.NoError(t, err)
+ return content
+}