1
0
Fork 0
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:
Henrik Hautakoski 2022-11-24 14:56:22 +01:00
parent d2b8e7d0dc
commit c89da02738
No known key found for this signature in database
GPG key ID: 608414D93E862CCD
9 changed files with 50 additions and 50 deletions

View file

@ -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{}

View file

@ -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

View file

@ -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)