(cs []T)
| 711 | } |
| 712 | |
| 713 | func getDurationValues[T ast.BaseTerm](cs []T) ([]int64, error) { |
| 714 | var durations []int64 |
| 715 | for _, c := range cs { |
| 716 | d, err := getDurationValue(c) |
| 717 | if err != nil { |
| 718 | return nil, err |
| 719 | } |
| 720 | durations = append(durations, d) |
| 721 | } |
| 722 | return durations, nil |
| 723 | } |
| 724 | |
| 725 | // Abs returns the absolute value of x. |
| 726 | // Note that Abs(math.MinInt64) is math.MaxInt64. |
no test coverage detected