fix: add missing imports and correct Config reference in files_test.go

This commit is contained in:
Arik Jones (aider)
2024-09-19 16:21:11 -05:00
parent e184cef444
commit c7791814c9

View File

@@ -3,7 +3,10 @@ package cmd
import ( import (
"os" "os"
"path/filepath" "path/filepath"
"strings"
"testing" "testing"
"github.com/yourusername/yourproject/internal/config"
) )
func TestMatchGlob(t *testing.T) { func TestMatchGlob(t *testing.T) {
@@ -97,7 +100,7 @@ func TestRunRollup(t *testing.T) {
} }
// Set up test configuration // Set up test configuration
cfg = &config.Config{ cfg = &Config{
FileTypes: []string{"go", "txt"}, FileTypes: []string{"go", "txt"},
Ignore: []string{"*.json"}, Ignore: []string{"*.json"},
} }