(t *testing.T, files map[string]string)
| 12 | ) |
| 13 | |
| 14 | func createNextIDTestFiles(t *testing.T, files map[string]string) string { |
| 15 | t.Helper() |
| 16 | tmpDir := t.TempDir() |
| 17 | for name, content := range files { |
| 18 | path := filepath.Join(tmpDir, name) |
| 19 | if err := os.WriteFile(path, []byte(content), 0644); err != nil { |
| 20 | t.Fatalf("failed to create test file %s: %v", name, err) |
| 21 | } |
| 22 | } |
| 23 | return tmpDir |
| 24 | } |
| 25 | |
| 26 | func resetNextIDFlags() { |
| 27 | nextIDFormat = "plain" |
no outgoing calls
no test coverage detected