MCPcopy Create free account
hub / github.com/docker/model-test / shouldCallAnyTool

Function shouldCallAnyTool

cmd/analyze-batch/main.go:381–388  ·  view source on GitHub ↗

shouldCallAnyTool determines if any tool should be called for a test case

(testCase models.TestCase)

Source from the content-addressed store, hash-verified

379
380// shouldCallAnyTool determines if any tool should be called for a test case
381func shouldCallAnyTool(testCase models.TestCase) bool {
382 for _, variant := range testCase.ExpectedToolVariants {
383 if len(variant.Tools) > 0 {
384 return true
385 }
386 }
387 return false
388}
389
390// getExpectedTools gets all expected tools from all variants
391func getExpectedTools(testCase models.TestCase) []string {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected