mirror of
https://github.com/alice-lg/birdwatcher.git
synced 2025-03-09 00:00:05 +01:00
23 lines
475 B
Go
23 lines
475 B
Go
package bird
|
|
|
|
// Created: 2016-12-01 14:15:00
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestReconfigTimestampFromStat(t *testing.T) {
|
|
|
|
// Just get the modification date of this file
|
|
ts := lastReconfigTimestampFromFileStat("./status_test.go")
|
|
t.Log(ts)
|
|
|
|
ts = lastReconfigTimestampFromFileStat("./___i_do_not_exist___")
|
|
t.Log(ts)
|
|
}
|
|
|
|
func TestReconfigTimestampFromContent(t *testing.T) {
|
|
|
|
ts := lastReconfigTimestampFromFileContent("./status_test.go", "// Created: (.*)")
|
|
t.Log(ts)
|
|
}
|