mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-19 05:10:02 +02:00
Cleanup test names.
This commit is contained in:
parent
d2b8e7d0dc
commit
c89da02738
9 changed files with 50 additions and 50 deletions
|
|
@ -2,7 +2,7 @@ package utils
|
|||
|
||||
import "testing"
|
||||
|
||||
func TestJsonGetInt64(t *testing.T) {
|
||||
func TestJson_GetInt64(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
input interface{}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import (
|
|||
log "github.com/inconshreveable/log15"
|
||||
)
|
||||
|
||||
func Test_ParseLogFormatter(t *testing.T) {
|
||||
func TestParseLogFormatter(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
arg string
|
||||
|
|
|
|||
|
|
@ -7,14 +7,14 @@ import (
|
|||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestTimeGetTimeWithDefaultValue(t *testing.T) {
|
||||
func TestTime_GetTimeWithDefaultValue(t *testing.T) {
|
||||
var ts Time
|
||||
|
||||
// Assert that time is NOW (+-10 seconds)
|
||||
assert.InDelta(t, ts.GetTime().Unix(), time.Now().In(time.UTC).Unix(), float64(10))
|
||||
}
|
||||
|
||||
func TestTimeGetTimeWithSetTime(t *testing.T) {
|
||||
func TestTime_GetTimeWithSetTime(t *testing.T) {
|
||||
var ts Time
|
||||
|
||||
expected := time.Unix(1048722042, 500)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue