(t testing.TB, fileName string)
| 282 | ) |
| 283 | |
| 284 | func readPolicy(t testing.TB, fileName string) *Source { |
| 285 | t.Helper() |
| 286 | policyBytes, err := os.ReadFile(fileName) |
| 287 | if err != nil { |
| 288 | t.Fatalf("os.ReadFile(%s) failed: %v", fileName, err) |
| 289 | } |
| 290 | return ByteSource(policyBytes, fileName) |
| 291 | } |
| 292 | |
| 293 | func readPolicyConfig(t testing.TB, fileName string) *env.Config { |
| 294 | t.Helper() |
no test coverage detected