MCPcopy
hub / github.com/google/mangle / getTimeValues

Function getTimeValues

builtin/builtin.go:690–700  ·  view source on GitHub ↗
(cs []T)

Source from the content-addressed store, hash-verified

688}
689
690func 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
702func getDurationValue(b ast.BaseTerm) (int64, error) {
703 c, ok := b.(ast.Constant)

Callers 1

DecideFunction · 0.85

Calls 1

getTimeValueFunction · 0.85

Tested by

no test coverage detected