mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-06 03:13:48 +02:00
d85a9001ec
aaaaaaaaaaarhhhhhhhhgttt
20 lines
326 B
Go
20 lines
326 B
Go
package testlib
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestMkTemp(t *testing.T) {
|
|
current, err := os.Getwd()
|
|
assert.NoError(t, err)
|
|
folder, back := Mktmp(t)
|
|
assert.NotEmpty(t, folder)
|
|
back()
|
|
newCurrent, err := os.Getwd()
|
|
assert.NoError(t, err)
|
|
assert.Equal(t, current, newCurrent)
|
|
}
|