MCPcopy Create free account
hub / github.com/exercism/cli / GetSolutionFiles

Method GetSolutionFiles

workspace/exercise_config.go:38–46  ·  view source on GitHub ↗

GetTestFiles finds returns the names of the file(s) that hold unit tests for this exercise, if any

()

Source from the content-addressed store, hash-verified

36
37// GetTestFiles finds returns the names of the file(s) that hold unit tests for this exercise, if any
38func (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
49func (c *ExerciseConfig) GetTestFiles() ([]string, error) {

Callers 3

TestExerciseConfigFunction · 0.95
GetTestCommandMethod · 0.95

Calls

no outgoing calls

Tested by 2

TestExerciseConfigFunction · 0.76