mirror of https://github.com/statping/statping
additional testing
parent
7355105c68
commit
b16cafc6e0
|
@ -16,25 +16,6 @@ func TestCreateLog(t *testing.T) {
|
||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestToFields(t *testing.T) {
|
|
||||||
example := struct {
|
|
||||||
Id int64
|
|
||||||
Str string
|
|
||||||
}{
|
|
||||||
Id: 1,
|
|
||||||
Str: "example input",
|
|
||||||
}
|
|
||||||
fields := ToFields(example)
|
|
||||||
|
|
||||||
assert.Equal(t, "", fields)
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestGetLastLine(t *testing.T) {
|
|
||||||
last := GetLastLine()
|
|
||||||
require.NotNil(t, last)
|
|
||||||
assert.Equal(t, "", last.lineAsString())
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestReplaceValue(t *testing.T) {
|
func TestReplaceValue(t *testing.T) {
|
||||||
assert.Equal(t, true, replaceVal(true))
|
assert.Equal(t, true, replaceVal(true))
|
||||||
assert.Equal(t, 42, replaceVal(42))
|
assert.Equal(t, 42, replaceVal(42))
|
||||||
|
|
Loading…
Reference in New Issue