(t *testing.T)
| 702 | } |
| 703 | |
| 704 | func TestMappingCustomArrayForm(t *testing.T) { |
| 705 | var s struct { |
| 706 | FileData objectID `form:"id"` |
| 707 | } |
| 708 | val := `664a062ac74a8ad104e0e80f` |
| 709 | err := mappingByPtr(&s, formSource{"id": {val}}, "form") |
| 710 | require.NoError(t, err) |
| 711 | |
| 712 | expected, _ := convertTo(val) |
| 713 | assert.Equal(t, expected, s.FileData) |
| 714 | } |
| 715 | |
| 716 | func TestMappingCustomArrayOfArrayUri(t *testing.T) { |
| 717 | id1, _ := convertTo(`664a062ac74a8ad104e0e80e`) |
nothing calls this directly
no test coverage detected