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

Method GetTestFiles

workspace/exercise_config.go:49–57  ·  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

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) {
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}

Callers 3

TestExerciseConfigFunction · 0.95
GetTestCommandMethod · 0.95

Calls

no outgoing calls

Tested by 2

TestExerciseConfigFunction · 0.76