WIP: unit test done, need further test

This commit is contained in:
2025-05-25 09:12:39 +10:00
parent 6e84adbf16
commit 61d735bbad
11 changed files with 130 additions and 47 deletions

View File

@@ -53,7 +53,7 @@ func TestRead(t *testing.T) {
_ = f.Close()
}
_ = wingmate.NewLog(os.Stderr)
_ = wingmate.NewLog(os.Stderr, wingmate.Caller|wingmate.Time)
tests := []testEntry{
{
name: "positive",

View File

@@ -20,7 +20,7 @@ func TestCrontab(t *testing.T) {
wantErr bool
}
_ = wingmate.NewLog(os.Stderr)
_ = wingmate.NewLog(os.Stderr, wingmate.Caller|wingmate.Time)
tests := []testEntry{
{
name: "positive",

View File

@@ -18,7 +18,7 @@ func TestYaml(t *testing.T) {
wantErr bool
}
_ = wingmate.NewLog(os.Stderr)
_ = wingmate.NewLog(os.Stderr, wingmate.Caller|wingmate.Time)
tests := []testEntry{
{
name: "positive",