-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added new test * Load in filter to return unsupported type error * Ignore vscode and html (coverage) files
- Loading branch information
Showing
35 changed files
with
359 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ | |
*.dll | ||
*.so | ||
*.dylib | ||
*.html | ||
.vscode/* | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package aggregation | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestLoadUnsupportedType(t *testing.T) { | ||
assert := assert.New(t) | ||
|
||
f, err := Load([]byte("{\"type\": \"blahblahType\"}")) | ||
|
||
assert.Nil(f, "filter should be nil") | ||
assert.NotNil(err, "error should not be nil") | ||
assert.Error(err, "unsupported type") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package bound | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestLoadUnsupportedType(t *testing.T) { | ||
assert := assert.New(t) | ||
|
||
f, err := Load([]byte("{\"type\": \"blahblahType\"}")) | ||
|
||
assert.Nil(f, "filter should be nil") | ||
assert.NotNil(err, "error should not be nil") | ||
assert.Error(err, "unsupported type") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package datasource | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestLoadUnsupportedType(t *testing.T) { | ||
assert := assert.New(t) | ||
|
||
f, err := Load([]byte("{\"type\": \"blahblahType\"}")) | ||
|
||
assert.Nil(f, "filter should be nil") | ||
assert.NotNil(err, "error should not be nil") | ||
assert.Error(err, "unsupported type") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package dimension | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestLoadUnsupportedType(t *testing.T) { | ||
assert := assert.New(t) | ||
|
||
f, err := Load([]byte("{\"type\": \"blahblahType\"}")) | ||
|
||
assert.Nil(f, "filter should be nil") | ||
assert.NotNil(err, "error should not be nil") | ||
assert.Error(err, "unsupported type") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package extractionfn | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestLoadUnsupportedType(t *testing.T) { | ||
assert := assert.New(t) | ||
|
||
f, err := Load([]byte("{\"type\": \"blahblahType\"}")) | ||
|
||
assert.Nil(f, "filter should be nil") | ||
assert.NotNil(err, "error should not be nil") | ||
assert.Error(err, "unsupported type") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package filter | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestLoadUnsupportedType(t *testing.T) { | ||
assert := assert.New(t) | ||
|
||
f, err := Load([]byte("{\"type\": \"blahblahType\"}")) | ||
|
||
assert.Nil(f, "filter should be nil") | ||
assert.NotNil(err, "error should not be nil") | ||
assert.Error(err, "unsupported type") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package granularity | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestLoadUnsupportedType(t *testing.T) { | ||
assert := assert.New(t) | ||
|
||
f, err := Load([]byte("{\"type\": \"blahblahType\"}")) | ||
|
||
assert.Nil(f, "filter should be nil") | ||
assert.NotNil(err, "error should not be nil") | ||
assert.Error(err, "unsupported type") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package havingspec | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestLoadUnsupportedType(t *testing.T) { | ||
assert := assert.New(t) | ||
|
||
f, err := Load([]byte("{\"type\": \"blahblahType\"}")) | ||
|
||
assert.Nil(f, "filter should be nil") | ||
assert.NotNil(err, "error should not be nil") | ||
assert.Error(err, "unsupported type") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package intervals | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestLoadUnsupportedType(t *testing.T) { | ||
assert := assert.New(t) | ||
|
||
f, err := Load([]byte("{\"type\": \"blahblahType\"}")) | ||
|
||
assert.Nil(f, "filter should be nil") | ||
assert.NotNil(err, "error should not be nil") | ||
assert.Error(err, "unsupported type") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package limitspec | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestLoadUnsupportedType(t *testing.T) { | ||
assert := assert.New(t) | ||
|
||
f, err := Load([]byte("{\"type\": \"blahblahType\"}")) | ||
|
||
assert.Nil(f, "filter should be nil") | ||
assert.NotNil(err, "error should not be nil") | ||
assert.Error(err, "unsupported type") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package lookup | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestLoadUnsupportedType(t *testing.T) { | ||
assert := assert.New(t) | ||
|
||
f, err := Load([]byte("{\"type\": \"blahblahType\"}")) | ||
|
||
assert.Nil(f, "filter should be nil") | ||
assert.NotNil(err, "error should not be nil") | ||
assert.Error(err, "unsupported type") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.