GetTestFiles finds returns the names of the file(s) that hold unit tests for this exercise, if any
()
| 36 | |
| 37 | // GetTestFiles finds returns the names of the file(s) that hold unit tests for this exercise, if any |
| 38 | func (c *ExerciseConfig) GetSolutionFiles() ([]string, error) { |
| 39 | result := c.Files.Solution |
| 40 | if result == nil { |
| 41 | // solution file(s) key was missing in config json, which is an error when calling this fuction |
| 42 | return []string{}, errors.New("no `files.solution` key in your `config.json`. Was it removed by mistake?") |
| 43 | } |
| 44 | |
| 45 | return result, nil |
| 46 | } |
| 47 | |
| 48 | // GetTestFiles finds returns the names of the file(s) that hold unit tests for this exercise, if any |
| 49 | func (c *ExerciseConfig) GetTestFiles() ([]string, error) { |
no outgoing calls