Files
api/model/counter/counter_test.go
T
2018-06-10 14:50:06 +02:00

20 lines
295 B
Go

package counter_test
import (
"testing"
"git.aiterp.net/rpdata/api/internal/store"
"git.aiterp.net/rpdata/api/model/counter"
)
func TestCounter(t *testing.T) {
store.Init()
value, err := counter.Next("test", "times_tested")
if err != nil {
t.Error(err)
}
t.Log("Value:", value)
}