algorithmsByNames returns slice of Algorithms from a sequence of Algorithm Names
(names iter.Seq[string])
| 992 | |
| 993 | // algorithmsByNames returns slice of Algorithms from a sequence of Algorithm Names |
| 994 | func algorithmsByNames(names iter.Seq[string]) ([]compressiontypes.Algorithm, error) { |
| 995 | result := []compressiontypes.Algorithm{} |
| 996 | for name := range names { |
| 997 | algo, err := compression.AlgorithmByName(name) |
| 998 | if err != nil { |
| 999 | return nil, err |
| 1000 | } |
| 1001 | result = append(result, algo) |
| 1002 | } |
| 1003 | return result, nil |
| 1004 | } |
no test coverage detected
searching dependent graphs…