You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
I wasn't sure how best to approach this, whether we should just have a check accepting slice_len as an additional tag in extractNumberFromTag or some other cleaner way, but dem's de facts.
The text was updated successfully, but these errors were encountered:
Right now,
slice_len
does not actually work for a slice of integers/bytes, despite what the example has: https://github.com/bxcodec/faker/blob/master/example_with_tags_slicelength_test.goIf you add a slice of integers to the test: https://github.com/bxcodec/faker/blob/master/faker_test.go#L650
It will fail with "Invalid Tags" here: https://github.com/bxcodec/faker/blob/master/faker.go#L921
The reason you don't see similar with Strings is because the similar check in
extractStringFromTag
, we always havelang
set: https://github.com/bxcodec/faker/blob/master/faker.go#L858I wasn't sure how best to approach this, whether we should just have a check accepting
slice_len
as an additional tag inextractNumberFromTag
or some other cleaner way, but dem's de facts.The text was updated successfully, but these errors were encountered: