(t *testing.T)
| 362 | } |
| 363 | |
| 364 | func Test_Object_IsTimeField(t *testing.T) { |
| 365 | m := NewMapper() |
| 366 | t1 := time.Now() |
| 367 | if m.GetDefaultTimeWrapper().IsType(reflect.ValueOf(t1)) { |
| 368 | t.Log("check time.Now ok") |
| 369 | } else { |
| 370 | t.Error("check time.Now error") |
| 371 | } |
| 372 | |
| 373 | var t2 JSONTime |
| 374 | t2 = JSONTime(time.Now()) |
| 375 | if m.GetDefaultTimeWrapper().IsType(reflect.ValueOf(t2)) { |
| 376 | t.Log("check mapper.Time ok") |
| 377 | } else { |
| 378 | t.Error("check mapper.Time error") |
| 379 | } |
| 380 | } |
| 381 | |
| 382 | func Test_Object_MapToJson_JsonToMap(t *testing.T) { |
| 383 | m := NewMapper() |
nothing calls this directly
no test coverage detected
searching dependent graphs…