summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml8
-rw-r--r--go.mod2
-rw-r--r--go.sum4
-rw-r--r--html/node.go2
-rw-r--r--html/parse_test.go2
-rw-r--r--json/nav.go2
-rw-r--r--json/node.go4
-rw-r--r--json/parse.go2
-rw-r--r--jsonpath/lexer.go2
-rw-r--r--jsonpath/lexer_test.go2
-rw-r--r--jsonpath/parser.go4
-rw-r--r--jsonpath/parser_test.go2
-rw-r--r--jsonpath/selector.go2
13 files changed, 23 insertions, 15 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..6dba4a3
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,8 @@
+language: go
+go:
+ - "1.x"
+ - master
+script:
+ - go test -race -coverprofile=coverage.txt -covermode=atomic
+after_success:
+ - bash <(curl -s https://codecov.io/bash)
diff --git a/go.mod b/go.mod
index 6f6fb00..2201bf6 100644
--- a/go.mod
+++ b/go.mod
@@ -4,5 +4,5 @@ replace src.userspace.com.au/felix/query => ./
require (
golang.org/x/net v0.0.0-20181102050134-b7e296877c6e
- src.userspace.com.au/felix/lexer v0.0.0-20181120133623-bb0ecd84fc2b
+ src.userspace.com.au/felix/lexer v0.0.0-20190313135154-66362f48e4bb
)
diff --git a/go.sum b/go.sum
index 6bebba5..b3ec8dd 100644
--- a/go.sum
+++ b/go.sum
@@ -1,4 +1,4 @@
golang.org/x/net v0.0.0-20181102050134-b7e296877c6e h1:lIf8v8wMiSq+MBwNne+ZEkKrswgZ2NzQ1oeBn8eCA4c=
golang.org/x/net v0.0.0-20181102050134-b7e296877c6e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-src.userspace.com.au/lexer v0.0.0-20181120133623-bb0ecd84fc2b h1:63amMS0Dzr7wEqPCJBK7cIBsUjIBL7drgnyexhu8+rk=
-src.userspace.com.au/lexer v0.0.0-20181120133623-bb0ecd84fc2b/go.mod h1:nBlDlMd/paOz9tmRTQSN9zf54MlSMfWAgS1qO4a2Q6Y=
+src.userspace.com.au/felix/lexer v0.0.0-20190313135154-66362f48e4bb h1:bbxNsgxJrJ/0vrN5xHeSkkZATpS8fQ9KQWJhmNMBHNY=
+src.userspace.com.au/felix/lexer v0.0.0-20190313135154-66362f48e4bb/go.mod h1:c/DEb5Wz8CWTqWjiU3jQWL612oUHuU46rZ39KrtHkOw=
diff --git a/html/node.go b/html/node.go
index ed51aaf..831a7a1 100644
--- a/html/node.go
+++ b/html/node.go
@@ -4,7 +4,7 @@ import (
"fmt"
x "golang.org/x/net/html"
- base "src.userspace.com.au/query"
+ base "src.userspace.com.au/felix/query"
)
// A Node consists of a NodeType and some data (tag name for
diff --git a/html/parse_test.go b/html/parse_test.go
index cfc6997..f113272 100644
--- a/html/parse_test.go
+++ b/html/parse_test.go
@@ -4,7 +4,7 @@ import (
"strings"
"testing"
- base "src.userspace.com.au/query"
+ base "src.userspace.com.au/felix/query"
)
func TestParse(t *testing.T) {
diff --git a/json/nav.go b/json/nav.go
index a870573..45bad7f 100644
--- a/json/nav.go
+++ b/json/nav.go
@@ -1,7 +1,7 @@
package json
import (
- base "src.userspace.com.au/query"
+ base "src.userspace.com.au/felix/query"
)
// NodeNavigator implements the Nav interface for navigating JSON nodes.
diff --git a/json/node.go b/json/node.go
index 4d58ee7..63e5a82 100644
--- a/json/node.go
+++ b/json/node.go
@@ -3,9 +3,9 @@ package json
import (
"bytes"
"fmt"
- "io"
+ //"io"
- base "src.userspace.com.au/query"
+ base "src.userspace.com.au/felix/query"
)
// A Node consists of a NodeType and some data (tag name for
diff --git a/json/parse.go b/json/parse.go
index db6ffe1..a1a2f28 100644
--- a/json/parse.go
+++ b/json/parse.go
@@ -6,7 +6,7 @@ import (
"sort"
"strconv"
- base "src.userspace.com.au/query"
+ base "src.userspace.com.au/felix/query"
)
// Parse JSON document.
diff --git a/jsonpath/lexer.go b/jsonpath/lexer.go
index f36d822..87f1889 100644
--- a/jsonpath/lexer.go
+++ b/jsonpath/lexer.go
@@ -4,7 +4,7 @@ import (
//"fmt"
"strings"
- "src.userspace.com.au/lexer"
+ "src.userspace.com.au/felix/lexer"
)
const (
diff --git a/jsonpath/lexer_test.go b/jsonpath/lexer_test.go
index 35bfe6b..526fe14 100644
--- a/jsonpath/lexer_test.go
+++ b/jsonpath/lexer_test.go
@@ -3,7 +3,7 @@ package jsonpath
import (
"testing"
- "src.userspace.com.au/lexer"
+ "src.userspace.com.au/felix/lexer"
)
func TestValidStates(t *testing.T) {
diff --git a/jsonpath/parser.go b/jsonpath/parser.go
index 06930b6..2398125 100644
--- a/jsonpath/parser.go
+++ b/jsonpath/parser.go
@@ -5,8 +5,8 @@ import (
"strconv"
"strings"
- "src.userspace.com.au/lexer"
- base "src.userspace.com.au/query"
+ "src.userspace.com.au/felix/lexer"
+ base "src.userspace.com.au/felix/query"
)
type Parser struct {
diff --git a/jsonpath/parser_test.go b/jsonpath/parser_test.go
index dd86944..a0c7e72 100644
--- a/jsonpath/parser_test.go
+++ b/jsonpath/parser_test.go
@@ -4,7 +4,7 @@ import (
"strings"
"testing"
- "src.userspace.com.au/query/json"
+ "src.userspace.com.au/felix/query/json"
)
func TestParse(t *testing.T) {
diff --git a/jsonpath/selector.go b/jsonpath/selector.go
index 4728566..f99db21 100644
--- a/jsonpath/selector.go
+++ b/jsonpath/selector.go
@@ -1,7 +1,7 @@
package jsonpath
import (
- base "src.userspace.com.au/query"
+ base "src.userspace.com.au/felix/query"
)
type Selector func(base.Node) bool