@@ -27,8 +27,8 @@ import (
2727
2828// NOTES:
2929// - Run "go test" to run tests
30- // - Run "gocov test | gocov report" to report on test converage by file
31- // - Run "gocov test | gocov annotate -" to report on all code and functions, those , marked with "MISS" were never called
30+ // - Run "gocov test | gocov report" to report on test coverage by file
31+ // - Run "gocov test | gocov annotate -" to report on all code and functions, those, marked with "MISS" were never called
3232//
3333// or
3434//
@@ -799,7 +799,7 @@ func TestStructPartial(t *testing.T) {
799799 errs = validate .StructPartial (tPartial , p2 ... )
800800 Equal (t , errs , nil )
801801
802- // this isn't really a robust test, but is ment to illustrate the ANON CASE below
802+ // this isn't really a robust test, but is meant to illustrate the ANON CASE below
803803 errs = validate .StructPartial (tPartial .SubSlice [0 ], p3 ... )
804804 Equal (t , errs , nil )
805805
@@ -809,7 +809,7 @@ func TestStructPartial(t *testing.T) {
809809 errs = validate .StructExcept (tPartial , p2 ... )
810810 Equal (t , errs , nil )
811811
812- // mod tParial for required feild and re-test making sure invalid fields are NOT required:
812+ // mod tPartial for required field and re-test making sure invalid fields are NOT required:
813813 tPartial .Required = ""
814814
815815 errs = validate .StructExcept (tPartial , p1 ... )
@@ -830,7 +830,7 @@ func TestStructPartial(t *testing.T) {
830830 tPartial .Required = "Required"
831831 tPartial .Anonymous .A = ""
832832
833- // will pass as unset feilds is not going to be tested
833+ // will pass as unset fields is not going to be tested
834834 errs = validate .StructPartial (tPartial , p1 ... )
835835 Equal (t , errs , nil )
836836
@@ -841,7 +841,7 @@ func TestStructPartial(t *testing.T) {
841841 errs = validate .StructExcept (tPartial .Anonymous , p4 ... )
842842 Equal (t , errs , nil )
843843
844- // will fail as unset feild is tested
844+ // will fail as unset field is tested
845845 errs = validate .StructPartial (tPartial , p2 ... )
846846 NotEqual (t , errs , nil )
847847 AssertError (t , errs , "TestPartial.Anonymous.A" , "TestPartial.Anonymous.A" , "A" , "A" , "required" )
@@ -893,7 +893,7 @@ func TestStructPartial(t *testing.T) {
893893 Equal (t , len (errs .(ValidationErrors )), 1 )
894894 AssertError (t , errs , "TestPartial.SubSlice[0].Test" , "TestPartial.SubSlice[0].Test" , "Test" , "Test" , "required" )
895895
896- // reset struct in slice, and unset struct in slice in unset posistion
896+ // reset struct in slice, and unset struct in slice in unset position
897897 tPartial .SubSlice [0 ].Test = "Required"
898898
899899 // these will pass as the unset item is NOT tested
@@ -9268,7 +9268,7 @@ func TestCustomFieldName(t *testing.T) {
92689268 Equal (t , getError (errs , "A.E" , "A.E" ).Field (), "E" )
92699269}
92709270
9271- func TestMutipleRecursiveExtractStructCache (t * testing.T ) {
9271+ func TestMultipleRecursiveExtractStructCache (t * testing.T ) {
92729272 validate := New ()
92739273
92749274 type Recursive struct {
@@ -9609,7 +9609,7 @@ func TestStructFiltered(t *testing.T) {
96099609 errs = validate .StructFiltered (tPartial .SubSlice [0 ], p3 )
96109610 Equal (t , errs , nil )
96119611
9612- // mod tParial for required field and re-test making sure invalid fields are NOT required:
9612+ // mod tPartial for required field and re-test making sure invalid fields are NOT required:
96139613 tPartial .Required = ""
96149614
96159615 // inversion and retesting Partial to generate failures:
@@ -9621,7 +9621,7 @@ func TestStructFiltered(t *testing.T) {
96219621 tPartial .Required = "Required"
96229622 tPartial .Anonymous .A = ""
96239623
9624- // will pass as unset feilds is not going to be tested
9624+ // will pass as unset fields is not going to be tested
96259625 errs = validate .StructFiltered (tPartial , p1 )
96269626 Equal (t , errs , nil )
96279627
@@ -10558,7 +10558,7 @@ func TestHTMLEncodedValidation(t *testing.T) {
1055810558 }
1055910559 } else {
1056010560 if IsEqual (errs , nil ) {
10561- t .Fatalf ("Index: %d html_enocded failed Error: %v" , i , errs )
10561+ t .Fatalf ("Index: %d html_encoded failed Error: %v" , i , errs )
1056210562 } else {
1056310563 val := getError (errs , "" , "" )
1056410564 if val .Tag () != "html_encoded" {
@@ -10599,7 +10599,7 @@ func TestURLEncodedValidation(t *testing.T) {
1059910599 }
1060010600 } else {
1060110601 if IsEqual (errs , nil ) {
10602- t .Fatalf ("Index: %d url_enocded failed Error: %v" , i , errs )
10602+ t .Fatalf ("Index: %d url_encoded failed Error: %v" , i , errs )
1060310603 } else {
1060410604 val := getError (errs , "" , "" )
1060510605 if val .Tag () != "url_encoded" {
0 commit comments