You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
295 B
19 lines
295 B
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)
|
|
}
|