// Copyright 2022 wanderer // SPDX-License-Identifier: GPL-3.0-or-later package algo import ( "os" "testing" ) // nolint: ifshort func TestCreateFolder(t *testing.T) { // let's assume this will never exist in a clean project... testPath := "whatever-path" got := createFolder(testPath) var want error if want != got { t.Errorf("issue creating folder: got %q", got.Error()) } os.RemoveAll(testPath) }