25 lines
441 B
Go
25 lines
441 B
Go
// Copyright 2022 wanderer <a_mirre at utb dot cz>
|
|
// 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)
|
|
}
|