GraphQL API and utilities for the rpdata project
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

  1. package counter_test
  2. import (
  3. "testing"
  4. "git.aiterp.net/rpdata/api/internal/store"
  5. "git.aiterp.net/rpdata/api/model/counter"
  6. )
  7. func TestCounter(t *testing.T) {
  8. store.Init()
  9. value, err := counter.Next("test", "times_tested")
  10. if err != nil {
  11. t.Error(err)
  12. }
  13. t.Log("Value:", value)
  14. }