Commit graph

209 commits

Author SHA1 Message Date
joeybloggs
c4203fff25 add file and README example 2015-07-04 15:29:12 -04:00
joeybloggs
89a5909004 add test to ensure 100% of the lines of code are called, even in the pool 2015-07-04 14:08:59 -04:00
Dean Karn
82abe38795 Add test coverage badge
add test coverage badge for issue #92
2015-07-04 13:25:49 -04:00
Dean Karn
26333a65c1 add goveralls test coverage
for #92
2015-07-04 13:18:46 -04:00
Dean Karn
d8e0c4d936 Merge pull request #90 from bluesuncorp/v5-development
Update Flatten logic to handle new dive logic
2015-06-29 21:01:05 -04:00
Dean Karn
4f5ff0f3b4 Merge pull request #89 from joeybloggs/v5-development
Update Flatten logic to handle new dive logic
2015-06-29 20:54:43 -04:00
joeybloggs
92bd6b335a code cleanup
for #88
2015-06-29 20:14:58 -04:00
joeybloggs
f604b6cc96 Complete Flatten logic
for #88
2015-06-29 20:10:13 -04:00
joeybloggs
4d57165562 fix wrong variable used in checking for "[" char
for #85
2015-06-29 09:53:08 -04:00
joeybloggs
7d55bfddde complete flatten logic for array elements
for #85
2015-06-29 09:48:57 -04:00
Dean Karn
d627af88ac Merge pull request #87 from bluesuncorp/v5-development
Correct interface panic & add interface type handling
2015-06-28 21:58:27 -04:00
Dean Karn
f6358a9d49 Merge pull request #86 from joeybloggs/v5-development
Correct interface panic & add interface type handling
2015-06-28 21:56:00 -04:00
joeybloggs
c7ff296dca correct interface issue
add handling of interface validation by determining it's type

for issue #85
2015-06-28 21:51:39 -04:00
Dean Karn
740b7d0daa Merge pull request #83 from bluesuncorp/v5-development
Merge latest dive changes for slice, array and maps
2015-06-27 14:32:18 -04:00
Dean Karn
4574ba54c6 Merge pull request #82 from joeybloggs/v5-development
Merge dive logic for slice, array and map
2015-06-27 14:29:17 -04:00
joeybloggs
22aaa55c7c add dive documentation
for #78
2015-06-27 14:08:07 -04:00
joeybloggs
200a5b4aad finish map error handling & complete test coverage
for #78
2015-06-27 13:41:33 -04:00
joeybloggs
8bf793acde correct map references pointing to slice after copy/paste
for#78
2015-06-27 08:22:37 -04:00
joeybloggs
14f176e8ac add traverseMap
for #78
2015-06-26 10:18:17 -04:00
joeybloggs
98f4165fae added time test
fix issue with time.Time data type validation
2015-06-26 09:57:02 -04:00
joeybloggs
a0f6d14ada add more tests
correct pointer issue is traverseArray

for #78
2015-06-26 08:41:37 -04:00
joeybloggs
689d3e9989 finalized array error handling
for #78
2015-06-26 07:47:12 -04:00
joeybloggs
1ba858eec1 correct FieldError error printing idea issue
for #78
2015-06-26 07:38:28 -04:00
joeybloggs
6eded1f817 correct error output and index out of order error
for #78
2015-06-26 07:28:15 -04:00
joeybloggs
d019d02290 Add some initial validation
change slice errors variable type to map[int]error to allow tracking of index of the error i the array

for #78
2015-06-25 17:24:25 -04:00
joeybloggs
4afdc19aef Finish initial array traversal logic
for #78
2015-06-25 09:15:46 -04:00
joeybloggs
a3cf2f5cf3 Merge branch 'v5-development' into add-array-slice-map-dive-support 2015-06-20 12:04:41 -04:00
Dean Karn
27a1d3f158 Merge pull request #81 from bluesuncorp/v5-development
Fix Issue with nested struct as pointer being nil
2015-06-20 12:02:52 -04:00
Dean Karn
3e4207bccb Merge pull request #80 from joeybloggs/v5-development
Fix Issue with nested struct as pointer being nil
2015-06-20 11:59:34 -04:00
joeybloggs
e0e86490bf Fix Issue with nested struct as pointer being nil
for #79
2015-06-20 11:56:16 -04:00
joeybloggs
e0bfa17b22 add initial dive logic 2015-06-20 10:04:55 -04:00
Dean Karn
c06d47f593 Merge pull request #77 from bluesuncorp/v5-development
Merge new validators + godoc examples
2015-06-17 09:45:28 -04:00
Dean Karn
64eb07fa30 Merge pull request #76 from joeybloggs/v5-development
Add More Validators + Add godoc examples
2015-06-17 09:41:19 -04:00
joeybloggs
63a3b7e6ad add multibyte test case for blank string to maintain 100% test coverage 2015-06-17 09:38:48 -04:00
joeybloggs
35aff710e4 added many new validator + tests + documentation:
ascii
printascii
multibyte
datauri
latitude
longitude
ssn
2015-06-17 09:02:26 -04:00
joeybloggs
7aa70841bc add uuid, uuid3, uuid4 and uuid5 validators + tests + documentation 2015-06-17 08:03:31 -04:00
joeybloggs
20d9b7909f add isbn, isbn10 and isbn validators + tests + documentation 2015-06-16 23:22:36 -04:00
joeybloggs
05e0fe1f85 updated various regex's to remove any capturing groups 2015-06-16 22:12:36 -04:00
joeybloggs
5db5165e2c update rub and reba regex
rejects now properly test for RGB 255 and RGB using percentages, before it allowed mixing of percentages or numbers between 0-255 but it's either or now.
2015-06-16 22:07:30 -04:00
joeybloggs
9ff11ae808 break out benchmarks into separate file
create examples file for better godocs
2015-06-10 22:03:57 -04:00
Dean Karn
df95f9de27 Merge pull request #71 from bluesuncorp/v5-development
V5 development
2015-06-08 21:51:25 -04:00
Dean Karn
be66dfe125 Merge pull request #70 from joeybloggs/v5-development
add call to SetMaxStructPoolSize in test to ensure continued 100% tes…
2015-06-08 21:48:28 -04:00
joeybloggs
f4837a073b add call to SetMaxStructPoolSize in test to ensure continued 100% test coverage 2015-06-08 21:46:08 -04:00
Dean Karn
ecfab4f37a Merge pull request #69 from bluesuncorp/v5-development
V5 development
2015-06-08 21:33:58 -04:00
Dean Karn
ac10117172 Merge pull request #68 from joeybloggs/v5-development
V5 development
2015-06-08 21:31:17 -04:00
joeybloggs
fcbf6b65e4 add caching pool of StructErrors to reuse objects, reduce garbage collection and reduce memory allocations
for #56
2015-06-08 21:27:00 -04:00
joeybloggs
678d778cba Merge branch 'investigate-including-comma-in-data' into v5-development 2015-06-08 20:42:48 -04:00
joeybloggs
0fbc3228e8 rework code to allow handling of comma (,) and = within the params i.e. excludesall=,=
add test cases for comma and = validation within params
add documentation stating how to include a comma within the parameters

for #67
2015-06-08 20:42:16 -04:00
Dean Karn
c6a510f8a9 Merge pull request #65 from bluesuncorp/v5-development
V5 development
2015-06-08 16:52:04 -04:00
Dean Karn
d40121962a Merge pull request #64 from joeybloggs/v5-development
V5 development
2015-06-08 16:48:57 -04:00