Skip to content

Commit

Permalink
Fixing coverage tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Hahn committed Jun 17, 2016
1 parent a5a35e0 commit 8b54646
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 21 deletions.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/kataras/iris"
"github.com/spf13/viper"
"github.com/topfreegames/mqttbot/bot"
"github.com/topfreegames/mqttbot/logger"
"github.com/topfreegames/mqttbot/mqttclient/bot"
)

type App struct {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions modules/plugins_password_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package modules

import (
"strings"
"testing"
)

func TestGenHash(t *testing.T) {
generated := genHash("password")
if !strings.HasPrefix(generated, "PBKDF2$sha256$901$") {
t.Fail()
}
}
File renamed without changes.
File renamed without changes.
10 changes: 0 additions & 10 deletions plugins/modules/plugins_password_test.go

This file was deleted.

2 changes: 1 addition & 1 deletion plugins/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/cjoudrey/gluahttp"
"github.com/layeh/gopher-json"
"github.com/topfreegames/mqttbot/logger"
"github.com/topfreegames/mqttbot/plugins/modules"
"github.com/topfreegames/mqttbot/modules"
"github.com/yuin/gopher-lua"
)

Expand Down
9 changes: 0 additions & 9 deletions testpackages.txt

This file was deleted.

0 comments on commit 8b54646

Please sign in to comment.