package wing_test import ( "os" "path/filepath" "testing" "github.com/stretchr/testify/require" ) func writePage(t *testing.T, dir, rel, body string) { t.Helper() full := filepath.Join(dir, rel) require.NoError(t, os.MkdirAll(filepath.Dir(full), 0o755)) require.NoError(t, os.WriteFile(full, []byte(body), 0o644)) }