(t *testing.T)
| 411 | } |
| 412 | |
| 413 | func Test_IsTimeField(t *testing.T) { |
| 414 | t1 := time.Now() |
| 415 | if standardMapper.GetDefaultTimeWrapper().IsType(reflect.ValueOf(t1)) { |
| 416 | t.Log("check time.Now ok") |
| 417 | } else { |
| 418 | t.Error("check time.Now error") |
| 419 | } |
| 420 | |
| 421 | var t2 JSONTime |
| 422 | t2 = JSONTime(time.Now()) |
| 423 | if standardMapper.GetDefaultTimeWrapper().IsType(reflect.ValueOf(t2)) { |
| 424 | t.Log("check mapper.Time ok") |
| 425 | } else { |
| 426 | t.Error("check mapper.Time error") |
| 427 | } |
| 428 | } |
| 429 | |
| 430 | func Test_MapToJson_JsonToMap(t *testing.T) { |
| 431 | fromMap := createMap() |
nothing calls this directly
no test coverage detected
searching dependent graphs…