filterOriginalMethod extract the original method from the list of combinations
(originalMethod string, combinations []string)
| 1657 | |
| 1658 | // filterOriginalMethod extract the original method from the list of combinations |
| 1659 | func filterOriginalMethod(originalMethod string, combinations []string) []string { |
| 1660 | filtered := make([]string, 0, len(combinations)) |
| 1661 | for _, combination := range combinations { |
| 1662 | if combination != originalMethod { |
| 1663 | filtered = append(filtered, combination) |
| 1664 | } |
| 1665 | } |
| 1666 | return filtered |
| 1667 | } |
| 1668 | |
| 1669 | // selectRandomCombinations selects up to n random combinations from a list of combinations. |
| 1670 | func selectRandomCombinations(combinations []string, n int) []string { |
no outgoing calls
no test coverage detected