portainer/portainer

View on GitHub
api/datastore/teststore.go

Summary

Maintainability
A
35 mins
Test Coverage

Function NewTestStore has 5 return statements (exceeds 4 allowed).
Open

func NewTestStore(t testing.TB, init, secure bool) (bool, *Store, func(), error) {
    // Creates unique temp directory in a concurrency friendly manner.
    storePath := t.TempDir()

    fileService, err := filesystem.NewService(storePath, "")
Severity: Major
Found in api/datastore/teststore.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status