(t testing.TB, fileName string)
| 291 | } |
| 292 | |
| 293 | func readPolicyConfig(t testing.TB, fileName string) *env.Config { |
| 294 | t.Helper() |
| 295 | testCaseBytes, err := os.ReadFile(fileName) |
| 296 | if err != nil { |
| 297 | t.Fatalf("os.ReadFile(%s) failed: %v", fileName, err) |
| 298 | } |
| 299 | config := &env.Config{} |
| 300 | err = yaml.Unmarshal(testCaseBytes, config) |
| 301 | if err != nil { |
| 302 | log.Fatalf("yaml.Unmarshal(%s) error: %v", fileName, err) |
| 303 | } |
| 304 | return config |
| 305 | } |
| 306 | |
| 307 | func readTestSuite(t testing.TB, fileName string) *test.Suite { |
| 308 | t.Helper() |
no outgoing calls
no test coverage detected