Added parallel to some missing tests
This commit is contained in:
parent
22a904d025
commit
3cdfc6237a
5 changed files with 11 additions and 1 deletions
|
@ -32,6 +32,8 @@ func TestSQLColDefinitions(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestTypes(t *testing.T) {
|
func TestTypes(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
defs := SQLColumnDefs{
|
defs := SQLColumnDefs{
|
||||||
{Type: "thing1"},
|
{Type: "thing1"},
|
||||||
{Type: "thing2"},
|
{Type: "thing2"},
|
||||||
|
@ -47,6 +49,8 @@ func TestTypes(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestNames(t *testing.T) {
|
func TestNames(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
defs := SQLColumnDefs{
|
defs := SQLColumnDefs{
|
||||||
{Name: "thing1"},
|
{Name: "thing1"},
|
||||||
{Name: "thing2"},
|
{Name: "thing2"},
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
package boil
|
|
|
@ -358,6 +358,7 @@ func TestBindPtrs_Ignore(t *testing.T) {
|
||||||
|
|
||||||
func TestGetStructValues(t *testing.T) {
|
func TestGetStructValues(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
timeThing := time.Now()
|
timeThing := time.Now()
|
||||||
o := struct {
|
o := struct {
|
||||||
TitleThing string
|
TitleThing string
|
||||||
|
|
|
@ -55,6 +55,8 @@ func TestImportsSort(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCombineTypeImports(t *testing.T) {
|
func TestCombineTypeImports(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
imports1 := imports{
|
imports1 := imports{
|
||||||
standard: importList{
|
standard: importList{
|
||||||
`"errors"`,
|
`"errors"`,
|
||||||
|
|
|
@ -20,6 +20,8 @@ func nopCloser(w io.Writer) io.WriteCloser {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestOutHandler(t *testing.T) {
|
func TestOutHandler(t *testing.T) {
|
||||||
|
// t.Parallel() cannot be used
|
||||||
|
|
||||||
// set the function pointer back to its original value
|
// set the function pointer back to its original value
|
||||||
// after we modify it for the test
|
// after we modify it for the test
|
||||||
saveTestHarnessFileOpen := testHarnessFileOpen
|
saveTestHarnessFileOpen := testHarnessFileOpen
|
||||||
|
@ -44,6 +46,8 @@ func TestOutHandler(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestOutHandlerFiles(t *testing.T) {
|
func TestOutHandlerFiles(t *testing.T) {
|
||||||
|
// t.Parallel() cannot be used
|
||||||
|
|
||||||
saveTestHarnessFileOpen := testHarnessFileOpen
|
saveTestHarnessFileOpen := testHarnessFileOpen
|
||||||
defer func() {
|
defer func() {
|
||||||
testHarnessFileOpen = saveTestHarnessFileOpen
|
testHarnessFileOpen = saveTestHarnessFileOpen
|
||||||
|
|
Loading…
Reference in a new issue