(t *testing.T)
| 122 | } |
| 123 | |
| 124 | func TestListSubdirectories(t *testing.T) { |
| 125 | root := t.TempDir() |
| 126 | require.NoError(t, os.MkdirAll(filepath.Join(root, "a", "b"), 0755)) |
| 127 | require.NoError(t, os.MkdirAll(filepath.Join(root, "c"), 0755)) |
| 128 | require.NoError(t, os.WriteFile(filepath.Join(root, "file.txt"), []byte("."), 0644)) |
| 129 | |
| 130 | dirs, err := listSubdirectories(root) |
| 131 | require.NoError(t, err) |
| 132 | slices.Sort(dirs) |
| 133 | require.Equal(t, []string{"a/", "a/b/", "c/"}, dirs) |
| 134 | } |
| 135 | |
| 136 | func TestDiffStringSlices(t *testing.T) { |
| 137 | tests := []struct { |
nothing calls this directly
no test coverage detected