Fixed an out of date description.
parent
7aa89d4d1f
commit
8f220f0e15
|
@ -23,9 +23,7 @@ import (
|
||||||
"github.com/jacobsa/oglematchers"
|
"github.com/jacobsa/oglematchers"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Match os.FileInfo values that specify an mtime equal to the given time. On
|
// Match os.FileInfo values that specify an mtime equal to the given time.
|
||||||
// platforms where the Sys() method returns a struct containing an mtime, check
|
|
||||||
// also that it matches.
|
|
||||||
func MtimeIs(expected time.Time) oglematchers.Matcher {
|
func MtimeIs(expected time.Time) oglematchers.Matcher {
|
||||||
return oglematchers.NewMatcher(
|
return oglematchers.NewMatcher(
|
||||||
func(c interface{}) error { return mtimeIsWithin(c, expected, 0) },
|
func(c interface{}) error { return mtimeIsWithin(c, expected, 0) },
|
||||||
|
|
Loading…
Reference in New Issue