github.com/solo-io/cue@v0.4.7/pkg/time/testdata/gen.txtar (about)

     1  # generated from the original tests.
     2  # Henceforth it may be nicer to group tests into separate files.
     3  -- in.cue --
     4  import "time"
     5  
     6  t1: time.Time & "1937-01-01T12:00:27.87+00:20"
     7  t2: time.Time & "no time"
     8  t3: time.Unix(1500000000, 123456)
     9  -- out/time --
    10  Errors:
    11  t2: invalid value "no time" (does not satisfy time.Time): error in call to time.Time: invalid time "no time":
    12      ./in.cue:4:17
    13  
    14  Result:
    15  t1: "1937-01-01T12:00:27.87+00:20"
    16  t2: _|_ // t2: invalid value "no time" (does not satisfy time.Time): error in call to time.Time: invalid time "no time"
    17  t3: "2017-07-14T02:40:00.000123456Z"
    18