mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
parse test coverage
This commit is contained in:
@@ -3,6 +3,7 @@ package conf
|
||||
import (
|
||||
"reflect"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
// Test to make sure we get what we expect.
|
||||
@@ -130,3 +131,18 @@ func TestSample4(t *testing.T) {
|
||||
}
|
||||
test(t, sample4, ex)
|
||||
}
|
||||
|
||||
var sample5 = `
|
||||
now = 2016-05-04T18:53:41Z
|
||||
gmt = false
|
||||
|
||||
`
|
||||
|
||||
func TestSample5(t *testing.T) {
|
||||
dt, _ := time.Parse("2006-01-02T15:04:05Z", "2016-05-04T18:53:41Z")
|
||||
ex := map[string]interface{}{
|
||||
"now": dt,
|
||||
"gmt": false,
|
||||
}
|
||||
test(t, sample5, ex)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user