timestamp_test.go 300 B

123456789101112131415
  1. package util
  2. import (
  3. "testing"
  4. )
  5. func TestTimestamp(t *testing.T) {
  6. t.Run(t.Name(), func(t *testing.T) {
  7. var p TimestampProcessor
  8. var testData = []int{0, 10, 20, 30, 40, 50, 60, 70, 80, 10, 20, 30, 40, 50, 60, 70, 80}
  9. for _, v := range testData {
  10. t.Log(p.ProcessTimestamp(v))
  11. }
  12. })
  13. }