(repoRoot string, contents string)
| 162 | } |
| 163 | |
| 164 | func DockerIgnoreTesterFromContents(repoRoot string, contents string) (*dockerPathMatcher, error) { |
| 165 | patterns, err := ignorefile.ReadAll(strings.NewReader(contents)) |
| 166 | if err != nil { |
| 167 | return nil, fmt.Errorf("error reading .dockerignore: %w", err) |
| 168 | } |
| 169 | |
| 170 | return NewDockerPatternMatcher(repoRoot, patterns) |
| 171 | } |
nothing calls this directly
no test coverage detected