GetTestFiles finds returns the names of the file(s) that hold unit tests for this exercise, if any
()
| 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) { |
| 50 | result := c.Files.Test |
| 51 | if result == nil { |
| 52 | // test file(s) key was missing in config json, which is an error when calling this fuction |
| 53 | return []string{}, errors.New("no `files.test` key in your `config.json`. Was it removed by mistake?") |
| 54 | } |
| 55 | |
| 56 | return result, nil |
| 57 | } |
no outgoing calls