Add init flag

This commit is contained in:
2023-06-28 12:41:27 +02:00
parent 6d8a3aa256
commit 3828c138b8
4 changed files with 89 additions and 3 deletions

View File

@@ -15,6 +15,10 @@ import (
func TestCheckFileExists(t *testing.T) {
tmpdir := t.TempDir()
if !util.CheckFileExists(tmpdir) {
t.Fatal("expected true, got false")
}
filePath := filepath.Join(tmpdir, "version.txt")
if err := os.WriteFile(filePath, []byte(fmt.Sprintf("%d", 1)), 0666); err != nil {