Skip to content

Commit

Permalink
Closer test is added.
Browse files Browse the repository at this point in the history
  • Loading branch information
cinar committed Sep 7, 2024
1 parent 08380cd commit 79c28d7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions helper/closer_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright (c) 2021-2024 Onur Cinar.
// The source code is provided under GNU AGPLv3 License.
// https://github.com/cinar/indicator

package helper_test

import (
"os"
"testing"

"github.com/cinar/indicator/v2/helper"
)

func TestCloseAndLogErrorWithoutError(t *testing.T) {
file, err := os.CreateTemp(os.TempDir(), "closer")
if err != nil {
t.Fatal(err)
}

helper.CloseAndLogError(file, "")
helper.CloseAndLogError(file, "")
}

0 comments on commit 79c28d7

Please sign in to comment.