Skip to content

Commit

Permalink
Rearrange BSON library packages
Browse files Browse the repository at this point in the history
Removed builder, parser, parser/ast, and elements packages.
Moved unstable packages under x/bsonx.

Change-Id: I8cb68a4e1839dd4efc3e4f32073213a0f6512e9d
  • Loading branch information
skriptble committed Nov 15, 2018
1 parent 6fd340f commit bb96e7b
Show file tree
Hide file tree
Showing 45 changed files with 34 additions and 4,959 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ MONGO_PKGS = $(shell ./etc/find_pkgs.sh ./mongo)
MONGO_TEST_PKGS = $(shell ./etc/find_pkgs.sh ./mongo _test)
CORE_PKGS = $(shell ./etc/find_pkgs.sh ./core)
CORE_TEST_PKGS = $(shell ./etc/find_pkgs.sh ./core _test)
PKGS = $(BSON_PKGS) $(MONGO_PKGS) $(CORE_PKGS)
TEST_PKGS = $(BSON_TEST_PKGS) $(MONGO_TEST_PKGS) $(CORE_TEST_PKGS)
UNSTABLE_PKGS = $(shell ./etc/find_pkgs.sh ./x)
UNSTABLE_TEST_PKGS = $(shell ./etc/find_pkgs.sh ./x _test)
PKGS = $(BSON_PKGS) $(MONGO_PKGS) $(CORE_PKGS) $(UNSTABLE_PKGS)
TEST_PKGS = $(BSON_TEST_PKGS) $(MONGO_TEST_PKGS) $(CORE_TEST_PKGS) $(UNSTABLE_TEST_PKGS)

TEST_TIMEOUT = 600

Expand Down
2 changes: 1 addition & 1 deletion bson/bson_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"time"

"github.com/google/go-cmp/cmp"
"github.com/mongodb/mongo-go-driver/bson/bsoncore"
"github.com/mongodb/mongo-go-driver/x/bsonx"
"github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion bson/bsoncodec/default_value_decoders_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ import (
"time"

"github.com/google/go-cmp/cmp"
"github.com/mongodb/mongo-go-driver/bson/bsoncore"
"github.com/mongodb/mongo-go-driver/bson/bsonrw"
"github.com/mongodb/mongo-go-driver/bson/bsonrw/bsonrwtest"
"github.com/mongodb/mongo-go-driver/bson/bsontype"
"github.com/mongodb/mongo-go-driver/bson/decimal"
"github.com/mongodb/mongo-go-driver/bson/objectid"
"github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore"
)

func TestDefaultValueDecoders(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion bson/bsoncodec/default_value_encoders_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ import (
"time"

"github.com/google/go-cmp/cmp"
"github.com/mongodb/mongo-go-driver/bson/bsoncore"
"github.com/mongodb/mongo-go-driver/bson/bsonrw"
"github.com/mongodb/mongo-go-driver/bson/bsonrw/bsonrwtest"
"github.com/mongodb/mongo-go-driver/bson/bsontype"
"github.com/mongodb/mongo-go-driver/bson/decimal"
"github.com/mongodb/mongo-go-driver/bson/objectid"
"github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore"
)

func TestDefaultValueEncoders(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion bson/bsonrw/bsonrwtest/bsonrwtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ package bsonrwtest
import (
"testing"

"github.com/mongodb/mongo-go-driver/bson/bsoncore"
"github.com/mongodb/mongo-go-driver/bson/bsonrw"
"github.com/mongodb/mongo-go-driver/bson/bsontype"
"github.com/mongodb/mongo-go-driver/bson/decimal"
"github.com/mongodb/mongo-go-driver/bson/objectid"
"github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore"
)

var _ bsonrw.ValueReader = (*ValueReaderWriter)(nil)
Expand Down
2 changes: 1 addition & 1 deletion bson/bsonrw/copier.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"fmt"
"io"

"github.com/mongodb/mongo-go-driver/bson/bsoncore"
"github.com/mongodb/mongo-go-driver/bson/bsontype"
"github.com/mongodb/mongo-go-driver/bson/decimal"
"github.com/mongodb/mongo-go-driver/bson/objectid"
"github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore"
)

// Copier is a type that allows copying between ValueReaders, ValueWriters, and
Expand Down
2 changes: 1 addition & 1 deletion bson/bsonrw/copier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
"fmt"
"testing"

"github.com/mongodb/mongo-go-driver/bson/bsoncore"
"github.com/mongodb/mongo-go-driver/bson/bsontype"
"github.com/mongodb/mongo-go-driver/bson/decimal"
"github.com/mongodb/mongo-go-driver/bson/objectid"
"github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore"
)

func TestCopier(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion bson/bsonrw/value_reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/mongodb/mongo-go-driver/bson/bsoncore"
"github.com/mongodb/mongo-go-driver/bson/bsontype"
"github.com/mongodb/mongo-go-driver/bson/decimal"
"github.com/mongodb/mongo-go-driver/bson/objectid"
"github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore"
)

func TestValueReader(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion bson/bsonrw/value_reader_writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ package bsonrw
import (
"testing"

"github.com/mongodb/mongo-go-driver/bson/bsoncore"
"github.com/mongodb/mongo-go-driver/bson/bsontype"
"github.com/mongodb/mongo-go-driver/bson/decimal"
"github.com/mongodb/mongo-go-driver/bson/objectid"
"github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore"
)

type VRWInvoked byte
Expand Down
2 changes: 1 addition & 1 deletion bson/bsonrw/value_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
"strconv"
"sync"

"github.com/mongodb/mongo-go-driver/bson/bsoncore"
"github.com/mongodb/mongo-go-driver/bson/bsontype"
"github.com/mongodb/mongo-go-driver/bson/decimal"
"github.com/mongodb/mongo-go-driver/bson/objectid"
"github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore"
)

var _ ValueWriter = (*valueWriter)(nil)
Expand Down
2 changes: 1 addition & 1 deletion bson/bsonrw/value_writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import (
"reflect"
"testing"

"github.com/mongodb/mongo-go-driver/bson/bsoncore"
"github.com/mongodb/mongo-go-driver/bson/bsontype"
"github.com/mongodb/mongo-go-driver/bson/decimal"
"github.com/mongodb/mongo-go-driver/bson/objectid"
"github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore"
)

func TestNewBSONValueWriter(t *testing.T) {
Expand Down
222 changes: 0 additions & 222 deletions bson/builder/array_constructor.go

This file was deleted.

Loading

0 comments on commit bb96e7b

Please sign in to comment.