(t *testing.T)
| 1043 | } |
| 1044 | |
| 1045 | func TestParseScopeEntries_NonMapEntry(t *testing.T) { |
| 1046 | // Test with a scope value that is not a map (e.g., a string) |
| 1047 | scopeMap := map[string]any{ |
| 1048 | "simple": "not-a-map", |
| 1049 | } |
| 1050 | |
| 1051 | scopes := parseScopeEntries(scopeMap) |
| 1052 | |
| 1053 | sc, ok := scopes["simple"] |
| 1054 | if !ok { |
| 1055 | t.Fatal("expected scope 'simple' to exist") |
| 1056 | } |
| 1057 | if sc.Paths != nil { |
| 1058 | t.Errorf("expected nil paths for non-map entry, got %v", sc.Paths) |
| 1059 | } |
| 1060 | } |
| 1061 | |
| 1062 | func TestParseScopeEntries_MissingPaths(t *testing.T) { |
| 1063 | // Scope entry with no paths key at all |
nothing calls this directly
no test coverage detected