2018-06-20 17:33:52 +03:00
|
|
|
// Copyright (C) 2018 The Go-SQLite3 Authors.
|
|
|
|
//
|
|
|
|
// Use of this source code is governed by an MIT-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2018-06-24 23:57:57 +03:00
|
|
|
// +build cgo
|
|
|
|
|
2018-06-20 17:33:52 +03:00
|
|
|
package sqlite3
|
|
|
|
|
|
|
|
import (
|
|
|
|
"io/ioutil"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TempFilename(t *testing.T) string {
|
|
|
|
f, err := ioutil.TempFile("", "go-sqlite3-test-")
|
|
|
|
if err != nil {
|
|
|
|
t.Fatal(err)
|
|
|
|
}
|
|
|
|
f.Close()
|
|
|
|
return f.Name()
|
|
|
|
}
|