new location for null.go

This commit is contained in:
Alex Grintsvayg 2018-02-22 13:18:41 -05:00
parent e4a52e21b6
commit 77fc991e7b
6 changed files with 34 additions and 34 deletions

View file

@ -170,8 +170,8 @@ func newImporter() importer {
`"time"`,
},
thirdParty: importList{
`"github.com/lbryio/errors.go"`,
`"github.com/lbryio/null.go"`,
`"github.com/lbryio/lbry.go/errors"`,
`"github.com/lbryio/lbry.go/null"`,
`"github.com/lbryio/sqlboiler/boil"`,
`"github.com/lbryio/sqlboiler/queries"`,
`"github.com/lbryio/sqlboiler/queries/qm"`,
@ -185,7 +185,7 @@ func newImporter() importer {
`"fmt"`,
},
thirdParty: importList{
`"github.com/lbryio/errors.go"`,
`"github.com/lbryio/lbry.go/errors"`,
`"github.com/lbryio/sqlboiler/boil"`,
`"github.com/lbryio/sqlboiler/queries"`,
`"github.com/lbryio/sqlboiler/queries/qm"`,
@ -194,7 +194,7 @@ func newImporter() importer {
},
"boil_types": {
thirdParty: importList{
`"github.com/lbryio/errors.go"`,
`"github.com/lbryio/lbry.go/errors"`,
`"github.com/lbryio/sqlboiler/strmangle"`,
},
},
@ -227,7 +227,7 @@ func newImporter() importer {
},
thirdParty: importList{
`"github.com/kat-co/vala"`,
`"github.com/lbryio/errors.go"`,
`"github.com/lbryio/lbry.go/errors"`,
`"github.com/lbryio/sqlboiler/boil"`,
`"github.com/spf13/viper"`,
},
@ -265,7 +265,7 @@ func newImporter() importer {
`"strings"`,
},
thirdParty: importList{
`"github.com/lbryio/errors.go"`,
`"github.com/lbryio/lbry.go/errors"`,
`"github.com/lbryio/sqlboiler/bdb/drivers"`,
`"github.com/lbryio/sqlboiler/randomize"`,
`_ "github.com/lib/pq"`,
@ -285,7 +285,7 @@ func newImporter() importer {
},
thirdParty: importList{
`_ "github.com/go-sql-driver/mysql"`,
`"github.com/lbryio/errors.go"`,
`"github.com/lbryio/lbry.go/errors"`,
`"github.com/lbryio/sqlboiler/bdb/drivers"`,
`"github.com/lbryio/sqlboiler/randomize"`,
`"github.com/spf13/viper"`,
@ -302,7 +302,7 @@ func newImporter() importer {
},
thirdParty: importList{
`_ "github.com/denisenkom/go-mssqldb"`,
`"github.com/lbryio/errors.go"`,
`"github.com/lbryio/lbry.go/errors"`,
`"github.com/lbryio/sqlboiler/bdb/drivers"`,
`"github.com/lbryio/sqlboiler/randomize"`,
`"github.com/spf13/viper"`,
@ -315,55 +315,55 @@ func newImporter() importer {
// TranslateColumnType to see the type assignments.
imp.BasedOnType = mapImports{
"null.Float32": {
thirdParty: importList{`"github.com/lbryio/null.go"`},
thirdParty: importList{`"github.com/lbryio/lbry.go/null"`},
},
"null.Float64": {
thirdParty: importList{`"github.com/lbryio/null.go"`},
thirdParty: importList{`"github.com/lbryio/lbry.go/null"`},
},
"null.Int": {
thirdParty: importList{`"github.com/lbryio/null.go"`},
thirdParty: importList{`"github.com/lbryio/lbry.go/null"`},
},
"null.Int8": {
thirdParty: importList{`"github.com/lbryio/null.go"`},
thirdParty: importList{`"github.com/lbryio/lbry.go/null"`},
},
"null.Int16": {
thirdParty: importList{`"github.com/lbryio/null.go"`},
thirdParty: importList{`"github.com/lbryio/lbry.go/null"`},
},
"null.Int32": {
thirdParty: importList{`"github.com/lbryio/null.go"`},
thirdParty: importList{`"github.com/lbryio/lbry.go/null"`},
},
"null.Int64": {
thirdParty: importList{`"github.com/lbryio/null.go"`},
thirdParty: importList{`"github.com/lbryio/lbry.go/null"`},
},
"null.Uint": {
thirdParty: importList{`"github.com/lbryio/null.go"`},
thirdParty: importList{`"github.com/lbryio/lbry.go/null"`},
},
"null.Uint8": {
thirdParty: importList{`"github.com/lbryio/null.go"`},
thirdParty: importList{`"github.com/lbryio/lbry.go/null"`},
},
"null.Uint16": {
thirdParty: importList{`"github.com/lbryio/null.go"`},
thirdParty: importList{`"github.com/lbryio/lbry.go/null"`},
},
"null.Uint32": {
thirdParty: importList{`"github.com/lbryio/null.go"`},
thirdParty: importList{`"github.com/lbryio/lbry.go/null"`},
},
"null.Uint64": {
thirdParty: importList{`"github.com/lbryio/null.go"`},
thirdParty: importList{`"github.com/lbryio/lbry.go/null"`},
},
"null.String": {
thirdParty: importList{`"github.com/lbryio/null.go"`},
thirdParty: importList{`"github.com/lbryio/lbry.go/null"`},
},
"null.Bool": {
thirdParty: importList{`"github.com/lbryio/null.go"`},
thirdParty: importList{`"github.com/lbryio/lbry.go/null"`},
},
"null.Time": {
thirdParty: importList{`"github.com/lbryio/null.go"`},
thirdParty: importList{`"github.com/lbryio/lbry.go/null"`},
},
"null.JSON": {
thirdParty: importList{`"github.com/lbryio/null.go"`},
thirdParty: importList{`"github.com/lbryio/lbry.go/null"`},
},
"null.Bytes": {
thirdParty: importList{`"github.com/lbryio/null.go"`},
thirdParty: importList{`"github.com/lbryio/lbry.go/null"`},
},
"time.Time": {
standard: importList{`"time"`},

View file

@ -246,7 +246,7 @@ func TestCombineTypeImports(t *testing.T) {
},
thirdParty: importList{
`"github.com/lbryio/sqlboiler/boil"`,
`"github.com/lbryio/null.go"`,
`"github.com/lbryio/lbry.go/null"`,
},
}
@ -281,7 +281,7 @@ func TestCombineTypeImports(t *testing.T) {
},
thirdParty: importList{
`"github.com/lbryio/sqlboiler/boil"`,
`"github.com/lbryio/null.go"`,
`"github.com/lbryio/lbry.go/null"`,
},
}
@ -297,7 +297,7 @@ func TestCombineImports(t *testing.T) {
a := imports{
standard: importList{"fmt"},
thirdParty: importList{"github.com/lbryio/sqlboiler", "github.com/lbryio/null.go"},
thirdParty: importList{"github.com/lbryio/sqlboiler", "github.com/lbryio/lbry.go/null"},
}
b := imports{
standard: importList{"os"},
@ -309,8 +309,8 @@ func TestCombineImports(t *testing.T) {
if c.standard[0] != "fmt" && c.standard[1] != "os" {
t.Errorf("Wanted: fmt, os got: %#v", c.standard)
}
if c.thirdParty[0] != "github.com/lbryio/sqlboiler" && c.thirdParty[1] != "github.com/lbryio/null.go" {
t.Errorf("Wanted: github.com/lbryio/sqlboiler, github.com/lbryio/null.go got: %#v", c.thirdParty)
if c.thirdParty[0] != "github.com/lbryio/sqlboiler" && c.thirdParty[1] != "github.com/lbryio/lbry.go/null" {
t.Errorf("Wanted: github.com/lbryio/sqlboiler, github.com/lbryio/lbry.go/null got: %#v", c.thirdParty)
}
}

View file

@ -5,7 +5,7 @@ import (
"testing"
"time"
null "github.com/lbryio/null.go"
null "github.com/lbryio/lbry.go/null"
)
type testObj struct {

View file

@ -4,7 +4,7 @@ import (
"database/sql"
"fmt"
"github.com/lbryio/errors.go"
"github.com/lbryio/lbry.go/errors"
"github.com/lbryio/sqlboiler/boil"
)

View file

@ -14,7 +14,7 @@ import (
"sync/atomic"
"time"
null "github.com/lbryio/null.go"
null "github.com/lbryio/lbry.go/null"
"github.com/pkg/errors"
"github.com/satori/go.uuid"

View file

@ -5,7 +5,7 @@ import (
"testing"
"time"
null "github.com/lbryio/null.go"
null "github.com/lbryio/lbry.go/null"
)
func TestRandomizeStruct(t *testing.T) {