| 1 | package search |
| 2 | |
| 3 | type 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. |
nothing calls this directly
no outgoing calls
no test coverage detected