Skip to content

Commit

Permalink
Use top-level int instead of duplicate internal
Browse files Browse the repository at this point in the history
  • Loading branch information
flimzy committed Jun 3, 2024
1 parent eb417c3 commit c0217b4
Show file tree
Hide file tree
Showing 36 changed files with 34 additions and 233 deletions.
2 changes: 1 addition & 1 deletion x/sqlite/changes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (

"github.com/go-kivik/kivik/v4"
"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal/mock"
"github.com/go-kivik/kivik/v4/int/mock"
)

func TestDBChanges(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion x/sqlite/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"testing"

"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal/mock"
"github.com/go-kivik/kivik/v4/int/mock"
)

type DB interface {
Expand Down
2 changes: 1 addition & 1 deletion x/sqlite/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"net/http"

"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal"
internal "github.com/go-kivik/kivik/v4/int/errors"
)

func (d *db) Delete(ctx context.Context, docID string, options driver.Options) (string, error) {
Expand Down
2 changes: 1 addition & 1 deletion x/sqlite/delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

"github.com/go-kivik/kivik/v4"
"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal/mock"
"github.com/go-kivik/kivik/v4/int/mock"
)

func TestDBDelete(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion x/sqlite/deleteattachment.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"net/http"

"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal"
internal "github.com/go-kivik/kivik/v4/int/errors"
)

func (d *db) DeleteAttachment(ctx context.Context, docID, filename string, options driver.Options) (string, error) {
Expand Down
2 changes: 1 addition & 1 deletion x/sqlite/deleteattachment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

"github.com/go-kivik/kivik/v4"
"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal/mock"
"github.com/go-kivik/kivik/v4/int/mock"
)

func TestDBDeleteAttachment(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion x/sqlite/designdocs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

"github.com/go-kivik/kivik/v4"
"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal/mock"
"github.com/go-kivik/kivik/v4/int/mock"
)

func TestDBDesignDocs(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion x/sqlite/get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

"github.com/go-kivik/kivik/v4"
"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal/mock"
"github.com/go-kivik/kivik/v4/int/mock"
)

func TestDBGet(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion x/sqlite/getattachment.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"net/http"

"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal"
internal "github.com/go-kivik/kivik/v4/int/errors"
)

func (d *db) GetAttachment(ctx context.Context, docID string, filename string, options driver.Options) (*driver.Attachment, error) {
Expand Down
2 changes: 1 addition & 1 deletion x/sqlite/getattachment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

"github.com/go-kivik/kivik/v4"
"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal/mock"
"github.com/go-kivik/kivik/v4/int/mock"
)

func TestDBGetAttachment(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion x/sqlite/getattachmentmeta.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"net/http"

"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal"
internal "github.com/go-kivik/kivik/v4/int/errors"
)

func (d *db) GetAttachmentMeta(ctx context.Context, docID, filename string, options driver.Options) (*driver.Attachment, error) {
Expand Down
2 changes: 1 addition & 1 deletion x/sqlite/getattachmentmeta_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

"github.com/go-kivik/kivik/v4"
"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal/mock"
"github.com/go-kivik/kivik/v4/int/mock"
)

func TestDBGetAttachmentMeta(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion x/sqlite/getrev.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"net/http"

"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal"
internal "github.com/go-kivik/kivik/v4/int/errors"
)

func (d *db) GetRev(ctx context.Context, id string, options driver.Options) (string, error) {
Expand Down
2 changes: 1 addition & 1 deletion x/sqlite/getrev_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

"github.com/go-kivik/kivik/v4"
"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal/mock"
"github.com/go-kivik/kivik/v4/int/mock"
)

func TestGetRev(t *testing.T) {
Expand Down
173 changes: 0 additions & 173 deletions x/sqlite/internal/errors.go

This file was deleted.

26 changes: 0 additions & 26 deletions x/sqlite/internal/mock/options.go

This file was deleted.

2 changes: 1 addition & 1 deletion x/sqlite/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"strconv"
"strings"

"github.com/go-kivik/kivik/x/sqlite/v4/internal"
internal "github.com/go-kivik/kivik/v4/int/errors"
)

type revision struct {
Expand Down
2 changes: 1 addition & 1 deletion x/sqlite/localdocs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

"github.com/go-kivik/kivik/v4"
"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal/mock"
"github.com/go-kivik/kivik/v4/int/mock"
)

func TestDBLocalDocs(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion x/sqlite/openrevs.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"strings"

"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal"
internal "github.com/go-kivik/kivik/v4/int/errors"
)

func (d *db) OpenRevs(ctx context.Context, docID string, revs []string, options driver.Options) (driver.Rows, error) {
Expand Down
2 changes: 1 addition & 1 deletion x/sqlite/openrevs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

"github.com/go-kivik/kivik/v4"
"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal/mock"
"github.com/go-kivik/kivik/v4/int/mock"
)

func TestDBOpenRevs(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion x/sqlite/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"strconv"

"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal"
internal "github.com/go-kivik/kivik/v4/int/errors"
)

type optsMap map[string]interface{}
Expand Down
2 changes: 1 addition & 1 deletion x/sqlite/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

"github.com/go-kivik/kivik/v4"
"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal/mock"
"github.com/go-kivik/kivik/v4/int/mock"
)

func Test_viewOptions(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion x/sqlite/put.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

"github.com/go-kivik/kivik/v4"
"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal"
internal "github.com/go-kivik/kivik/v4/int/errors"
)

func (d *db) Put(ctx context.Context, docID string, doc interface{}, options driver.Options) (string, error) {
Expand Down
2 changes: 1 addition & 1 deletion x/sqlite/put_designdocs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (

"github.com/go-kivik/kivik/v4"
"github.com/go-kivik/kivik/v4/driver"
"github.com/go-kivik/kivik/x/sqlite/v4/internal/mock"
"github.com/go-kivik/kivik/v4/int/mock"
)

type ddoc struct {
Expand Down
Loading

0 comments on commit c0217b4

Please sign in to comment.