loadPluginMutators walks every sub-filesystem of every registered plugin FS, reading mutator YAML files from a "mutators/" prefix and merging them into dst.
(dst map[string]*MutatorSpec)
| 22 | // loadPluginMutators walks every sub-filesystem of every registered plugin FS, |
| 23 | // reading mutator YAML files from a "mutators/" prefix and merging them into dst. |
| 24 | func loadPluginMutators(dst map[string]*MutatorSpec) { |
| 25 | for _, groupFS := range pluginFileSystems { |
| 26 | for subFS := range groupFS.AllFileSubSystems { |
| 27 | loadMutatorsFromFS(subFS, dst) |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | func loadMutatorsFromFS(subFS fs.ReadFileFS, dst map[string]*MutatorSpec) { |
| 33 | if pl, ok := subFS.(fileloader.PathLister); ok { |
no test coverage detected