(t *testing.T)
| 690 | } |
| 691 | |
| 692 | func TestMappingCustomArrayUri(t *testing.T) { |
| 693 | var s struct { |
| 694 | FileData objectID `uri:"id"` |
| 695 | } |
| 696 | val := `664a062ac74a8ad104e0e80f` |
| 697 | err := mappingByPtr(&s, formSource{"id": {val}}, "uri") |
| 698 | require.NoError(t, err) |
| 699 | |
| 700 | expected, _ := convertTo(val) |
| 701 | assert.Equal(t, expected, s.FileData) |
| 702 | } |
| 703 | |
| 704 | func TestMappingCustomArrayForm(t *testing.T) { |
| 705 | var s struct { |
nothing calls this directly
no test coverage detected