MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / searchTest

Struct searchTest

search/testcases.go:3–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package search
2
3type searchTest struct {
4 data []int
5 key int
6 expected int
7 expectedError error
8 name string
9}
10
11// Note that these are immutable therefore they are shared among all the search tests.
12// If your algorithm is mutating these then it is advisable to create separate test cases.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected