Skip to content

Commit

Permalink
change a test to test coveralls coverage logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed Sep 12, 2015
1 parent 3c9cc3f commit 036e130
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions handler/via/via_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package via
package via_test

import (
"encoding/json"
Expand All @@ -10,13 +10,14 @@ import (
"golang.org/x/net/context"

"github.com/ironsmile/nedomi/config"
"github.com/ironsmile/nedomi/handler"
"github.com/ironsmile/nedomi/types"
)

func TestVia(t *testing.T) {
canonicalKey := http.CanonicalHeaderKey("via")
var testText = "notnedomi 2.2"
v, err := New(config.NewHandler("via", json.RawMessage(`{"text": "notnedomi 2.2"}`)), nil,
v, err := handler.New(config.NewHandler("via", json.RawMessage(`{"text": "notnedomi 2.2"}`)), nil,
testStringHandler(t, testText))

if err != nil {
Expand Down

0 comments on commit 036e130

Please sign in to comment.