Skip to content
This repository has been archived by the owner on Nov 8, 2017. It is now read-only.

Commit

Permalink
import updates after renaming lib
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-ramon committed Nov 3, 2015
1 parent 4383847 commit f3a2ebf
Show file tree
Hide file tree
Showing 52 changed files with 116 additions and 115 deletions.
8 changes: 4 additions & 4 deletions abstract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"reflect"
"testing"

"github.com/chris-ramon/graphql-go"
"github.com/chris-ramon/graphql-go/gqlerrors"
"github.com/chris-ramon/graphql-go/language/location"
"github.com/chris-ramon/graphql-go/testutil"
"github.com/chris-ramon/graphql"
"github.com/chris-ramon/graphql/gqlerrors"
"github.com/chris-ramon/graphql/language/location"
"github.com/chris-ramon/graphql/testutil"
)

type testDog struct {
Expand Down
2 changes: 1 addition & 1 deletion definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"reflect"
"regexp"

"github.com/chris-ramon/graphql-go/language/ast"
"github.com/chris-ramon/graphql/language/ast"
)

// These are all of the possible kinds of
Expand Down
4 changes: 2 additions & 2 deletions definition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"reflect"
"testing"

"github.com/chris-ramon/graphql-go"
"github.com/chris-ramon/graphql-go/testutil"
"github.com/chris-ramon/graphql"
"github.com/chris-ramon/graphql/testutil"
)

var blogImage = graphql.NewObject(graphql.ObjectConfig{
Expand Down
4 changes: 2 additions & 2 deletions directives_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"reflect"
"testing"

"github.com/chris-ramon/graphql-go"
"github.com/chris-ramon/graphql-go/testutil"
"github.com/chris-ramon/graphql"
"github.com/chris-ramon/graphql/testutil"
)

var directivesTestSchema, _ = graphql.NewSchema(graphql.SchemaConfig{
Expand Down
6 changes: 3 additions & 3 deletions enum_type_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"reflect"
"testing"

"github.com/chris-ramon/graphql-go"
"github.com/chris-ramon/graphql-go/gqlerrors"
"github.com/chris-ramon/graphql-go/testutil"
"github.com/chris-ramon/graphql"
"github.com/chris-ramon/graphql/gqlerrors"
"github.com/chris-ramon/graphql/testutil"
)

var enumTypeTestColorType = graphql.NewEnum(graphql.EnumConfig{
Expand Down
Binary file added examples/http/http
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/http/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io/ioutil"
"net/http"

"github.com/chris-ramon/graphql-go"
"github.com/chris-ramon/graphql"
)

type user struct {
Expand Down
4 changes: 2 additions & 2 deletions executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"reflect"
"strings"

"github.com/chris-ramon/graphql-go/gqlerrors"
"github.com/chris-ramon/graphql-go/language/ast"
"github.com/chris-ramon/graphql/gqlerrors"
"github.com/chris-ramon/graphql/language/ast"
)

type ExecuteParams struct {
Expand Down
4 changes: 2 additions & 2 deletions executor_schema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"reflect"
"testing"

"github.com/chris-ramon/graphql-go"
"github.com/chris-ramon/graphql-go/testutil"
"github.com/chris-ramon/graphql"
"github.com/chris-ramon/graphql/testutil"
)

// TODO: have a separate package for other tests for eg `parser`
Expand Down
8 changes: 4 additions & 4 deletions executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"reflect"
"testing"

"github.com/chris-ramon/graphql-go"
"github.com/chris-ramon/graphql-go/gqlerrors"
"github.com/chris-ramon/graphql-go/language/location"
"github.com/chris-ramon/graphql-go/testutil"
"github.com/chris-ramon/graphql"
"github.com/chris-ramon/graphql/gqlerrors"
"github.com/chris-ramon/graphql/language/location"
"github.com/chris-ramon/graphql/testutil"
)

func TestExecutesArbitraryCode(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions gqlerrors/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package gqlerrors
import (
"fmt"

"github.com/chris-ramon/graphql-go/language/ast"
"github.com/chris-ramon/graphql-go/language/location"
"github.com/chris-ramon/graphql-go/language/source"
"github.com/chris-ramon/graphql/language/ast"
"github.com/chris-ramon/graphql/language/location"
"github.com/chris-ramon/graphql/language/source"
)

type Error struct {
Expand Down
2 changes: 1 addition & 1 deletion gqlerrors/formatted.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gqlerrors
import (
"errors"

"github.com/chris-ramon/graphql-go/language/location"
"github.com/chris-ramon/graphql/language/location"
)

type FormattedError struct {
Expand Down
2 changes: 1 addition & 1 deletion gqlerrors/located.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package gqlerrors

import (
"github.com/chris-ramon/graphql-go/language/ast"
"github.com/chris-ramon/graphql/language/ast"
)

func NewLocatedError(err interface{}, nodes []ast.Node) *Error {
Expand Down
6 changes: 3 additions & 3 deletions gqlerrors/syntax.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"regexp"

"github.com/chris-ramon/graphql-go/language/ast"
"github.com/chris-ramon/graphql-go/language/location"
"github.com/chris-ramon/graphql-go/language/source"
"github.com/chris-ramon/graphql/language/ast"
"github.com/chris-ramon/graphql/language/location"
"github.com/chris-ramon/graphql/language/source"
)

func NewSyntaxError(s *source.Source, position int, description string) *Error {
Expand Down
6 changes: 3 additions & 3 deletions graphql.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package graphql

import (
"github.com/chris-ramon/graphql-go/gqlerrors"
"github.com/chris-ramon/graphql-go/language/parser"
"github.com/chris-ramon/graphql-go/language/source"
"github.com/chris-ramon/graphql/gqlerrors"
"github.com/chris-ramon/graphql/language/parser"
"github.com/chris-ramon/graphql/language/source"
)

type Params struct {
Expand Down
4 changes: 2 additions & 2 deletions graphql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"reflect"
"testing"

"github.com/chris-ramon/graphql-go"
"github.com/chris-ramon/graphql-go/testutil"
"github.com/chris-ramon/graphql"
"github.com/chris-ramon/graphql/testutil"
)

type T struct {
Expand Down
4 changes: 2 additions & 2 deletions introspection.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"reflect"

"github.com/chris-ramon/graphql-go/language/ast"
"github.com/chris-ramon/graphql-go/language/printer"
"github.com/chris-ramon/graphql/language/ast"
"github.com/chris-ramon/graphql/language/printer"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions introspection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"reflect"
"testing"

"github.com/chris-ramon/graphql-go"
"github.com/chris-ramon/graphql-go/gqlerrors"
"github.com/chris-ramon/graphql-go/language/location"
"github.com/chris-ramon/graphql-go/testutil"
"github.com/chris-ramon/graphql"
"github.com/chris-ramon/graphql/gqlerrors"
"github.com/chris-ramon/graphql/language/location"
"github.com/chris-ramon/graphql/testutil"
)

func g(t *testing.T, p graphql.Params) *graphql.Result {
Expand Down
2 changes: 1 addition & 1 deletion language/ast/arguments.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ast

import (
"github.com/chris-ramon/graphql-go/language/kinds"
"github.com/chris-ramon/graphql/language/kinds"
)

// Argument implements Node
Expand Down
2 changes: 1 addition & 1 deletion language/ast/definitions.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ast

import (
"github.com/chris-ramon/graphql-go/language/kinds"
"github.com/chris-ramon/graphql/language/kinds"
)

type Definition interface {
Expand Down
2 changes: 1 addition & 1 deletion language/ast/directives.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ast

import (
"github.com/chris-ramon/graphql-go/language/kinds"
"github.com/chris-ramon/graphql/language/kinds"
)

// Directive implements Node
Expand Down
2 changes: 1 addition & 1 deletion language/ast/document.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ast

import (
"github.com/chris-ramon/graphql-go/language/kinds"
"github.com/chris-ramon/graphql/language/kinds"
)

// Document implements Node
Expand Down
2 changes: 1 addition & 1 deletion language/ast/location.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ast

import (
"github.com/chris-ramon/graphql-go/language/source"
"github.com/chris-ramon/graphql/language/source"
)

type Location struct {
Expand Down
2 changes: 1 addition & 1 deletion language/ast/name.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ast

import (
"github.com/chris-ramon/graphql-go/language/kinds"
"github.com/chris-ramon/graphql/language/kinds"
)

// Name implements Node
Expand Down
2 changes: 1 addition & 1 deletion language/ast/selections.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ast

import (
"github.com/chris-ramon/graphql-go/language/kinds"
"github.com/chris-ramon/graphql/language/kinds"
)

type Selection interface {
Expand Down
2 changes: 1 addition & 1 deletion language/ast/type_definitions.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ast

import (
"github.com/chris-ramon/graphql-go/language/kinds"
"github.com/chris-ramon/graphql/language/kinds"
)

// Ensure that all typeDefinition types implements Definition interface
Expand Down
2 changes: 1 addition & 1 deletion language/ast/types.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ast

import (
"github.com/chris-ramon/graphql-go/language/kinds"
"github.com/chris-ramon/graphql/language/kinds"
)

type Type interface {
Expand Down
2 changes: 1 addition & 1 deletion language/ast/values.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ast

import (
"github.com/chris-ramon/graphql-go/language/kinds"
"github.com/chris-ramon/graphql/language/kinds"
)

type Value interface {
Expand Down
4 changes: 2 additions & 2 deletions language/lexer/lexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package lexer
import (
"fmt"

"github.com/chris-ramon/graphql-go/gqlerrors"
"github.com/chris-ramon/graphql-go/language/source"
"github.com/chris-ramon/graphql/gqlerrors"
"github.com/chris-ramon/graphql/language/source"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion language/lexer/lexer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/chris-ramon/graphql-go/language/source"
"github.com/chris-ramon/graphql/language/source"
)

type Test struct {
Expand Down
2 changes: 1 addition & 1 deletion language/location/location.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package location
import (
"regexp"

"github.com/chris-ramon/graphql-go/language/source"
"github.com/chris-ramon/graphql/language/source"
)

type SourceLocation struct {
Expand Down
8 changes: 4 additions & 4 deletions language/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package parser
import (
"fmt"

"github.com/chris-ramon/graphql-go/gqlerrors"
"github.com/chris-ramon/graphql-go/language/ast"
"github.com/chris-ramon/graphql-go/language/lexer"
"github.com/chris-ramon/graphql-go/language/source"
"github.com/chris-ramon/graphql/gqlerrors"
"github.com/chris-ramon/graphql/language/ast"
"github.com/chris-ramon/graphql/language/lexer"
"github.com/chris-ramon/graphql/language/source"
)

type parseFn func(parser *Parser) (interface{}, error)
Expand Down
8 changes: 4 additions & 4 deletions language/parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"strings"
"testing"

"github.com/chris-ramon/graphql-go/gqlerrors"
"github.com/chris-ramon/graphql-go/language/ast"
"github.com/chris-ramon/graphql-go/language/location"
"github.com/chris-ramon/graphql-go/language/source"
"github.com/chris-ramon/graphql/gqlerrors"
"github.com/chris-ramon/graphql/language/ast"
"github.com/chris-ramon/graphql/language/location"
"github.com/chris-ramon/graphql/language/source"
)

func TestAcceptsOptionToNotIncludeSource(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions language/parser/schema_parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"reflect"
"testing"

"github.com/chris-ramon/graphql-go/gqlerrors"
"github.com/chris-ramon/graphql-go/language/ast"
"github.com/chris-ramon/graphql-go/language/location"
"github.com/chris-ramon/graphql-go/language/source"
"github.com/chris-ramon/graphql/gqlerrors"
"github.com/chris-ramon/graphql/language/ast"
"github.com/chris-ramon/graphql/language/location"
"github.com/chris-ramon/graphql/language/source"
)

func parse(t *testing.T, query string) *ast.Document {
Expand Down
4 changes: 2 additions & 2 deletions language/printer/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"strings"

"github.com/chris-ramon/graphql-go/language/ast"
"github.com/chris-ramon/graphql-go/language/visitor"
"github.com/chris-ramon/graphql/language/ast"
"github.com/chris-ramon/graphql/language/visitor"
)

func getMapValue(m map[string]interface{}, key string) interface{} {
Expand Down
8 changes: 4 additions & 4 deletions language/printer/printer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"reflect"
"testing"

"github.com/chris-ramon/graphql-go/language/ast"
"github.com/chris-ramon/graphql-go/language/parser"
"github.com/chris-ramon/graphql-go/language/printer"
"github.com/chris-ramon/graphql-go/testutil"
"github.com/chris-ramon/graphql/language/ast"
"github.com/chris-ramon/graphql/language/parser"
"github.com/chris-ramon/graphql/language/printer"
"github.com/chris-ramon/graphql/testutil"
)

func parse(t *testing.T, query string) *ast.Document {
Expand Down
Loading

0 comments on commit f3a2ebf

Please sign in to comment.