/usr/share/gocode/src/github.com/mitchellh/copystructure/copier_time_test.go is in golang-github-mitchellh-copystructure-dev 0.0~git20161013.0.5af94ae-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | package copystructure
import (
"testing"
"time"
)
func TestTimeCopier(t *testing.T) {
v := time.Now().UTC()
result, err := timeCopier(v)
if err != nil {
t.Fatalf("err: %s", err)
}
if result.(time.Time) != v {
t.Fatalf("bad: %#v\n\n%#v", v, result)
}
}
|