(cs []T)
| 688 | } |
| 689 | |
| 690 | func getTimeValues[T ast.BaseTerm](cs []T) ([]int64, error) { |
| 691 | var times []int64 |
| 692 | for _, c := range cs { |
| 693 | t, err := getTimeValue(c) |
| 694 | if err != nil { |
| 695 | return nil, err |
| 696 | } |
| 697 | times = append(times, t) |
| 698 | } |
| 699 | return times, nil |
| 700 | } |
| 701 | |
| 702 | func getDurationValue(b ast.BaseTerm) (int64, error) { |
| 703 | c, ok := b.(ast.Constant) |
no test coverage detected