@@ -118,14 +118,16 @@ func TestFuzzProject(t *testing.T) {
118118 deltaSeq := projSeqCount .Load () - startSeq
119119 deltaMap := projMapCount .Load () - startMap
120120 fmt .Printf ("Project strategies: copy=%d seq=%d map=%d\n " , deltaCopy , deltaSeq , deltaMap )
121- if deltaCopy == 0 {
122- t .Error ("projCopy strategy not used" )
123- }
124- if deltaSeq == 0 {
125- t .Error ("projSeq strategy not used" )
126- }
127- if deltaMap == 0 {
128- t .Error ("projMap strategy not used" )
121+ if nfuzz >= 1000 {
122+ if deltaCopy == 0 {
123+ t .Error ("projCopy strategy not used" )
124+ }
125+ if deltaSeq == 0 {
126+ t .Error ("projSeq strategy not used" )
127+ }
128+ if deltaMap == 0 {
129+ t .Error ("projMap strategy not used" )
130+ }
129131 }
130132}
131133
@@ -283,23 +285,25 @@ func TestFuzzSummarize(t *testing.T) {
283285 deltaWholeRow := sumWholeRowCount .Load () - startWholeRow
284286 fmt .Printf ("Summarize strategies: seq=%d map=%d idx=%d tbl=%d unique=%d wholerow=%d\n " ,
285287 deltaSeq , deltaMap , deltaIdx , deltaTbl , deltaUnique , deltaWholeRow )
286- if deltaSeq == 0 {
287- t .Error ("sumSeq strategy not used" )
288- }
289- if deltaMap == 0 {
290- t .Error ("sumMap strategy not used" )
291- }
292- if deltaIdx == 0 {
293- t .Error ("sumIdx strategy not used" )
294- }
295- if deltaTbl == 0 {
296- t .Error ("sumTbl strategy not used" )
297- }
298- if deltaUnique == 0 {
299- t .Error ("sumUnique variation not used" )
300- }
301- if deltaWholeRow == 0 {
302- t .Error ("sumWholeRow variation not used" )
288+ if nfuzz >= 1000 {
289+ if deltaSeq == 0 {
290+ t .Error ("sumSeq strategy not used" )
291+ }
292+ if deltaMap == 0 {
293+ t .Error ("sumMap strategy not used" )
294+ }
295+ if deltaIdx == 0 {
296+ t .Error ("sumIdx strategy not used" )
297+ }
298+ if deltaTbl == 0 {
299+ t .Error ("sumTbl strategy not used" )
300+ }
301+ if deltaUnique == 0 {
302+ t .Error ("sumUnique variation not used" )
303+ }
304+ if deltaWholeRow == 0 {
305+ t .Error ("sumWholeRow variation not used" )
306+ }
303307 }
304308}
305309
@@ -462,18 +466,20 @@ func TestFuzzUnion(t *testing.T) {
462466 deltaLookup := unionLookupCount .Load () - startLookup
463467 deltaDisjoint := unionDisjointCount .Load () - startDisjoint
464468 fmt .Printf ("Union strategies: merge=%d lookup=%d disjoint=%d\n " , deltaMerge , deltaLookup , deltaDisjoint )
465- if deltaMerge == 0 {
466- t .Error ("unionMerge strategy not used" )
467- }
468- if deltaLookup == 0 {
469- t .Error ("unionLookup strategy not used" )
470- }
471- // TODO requires Fixed
472- // if deltaDisjoint == 0 {
473- // t.Error("unionDisjoint variation not used")
474- // }
475- if deltaMerge + deltaLookup - deltaDisjoint == 0 {
476- t .Error ("union non-disjoint variation not used" )
469+ if nfuzz >= 1000 {
470+ if deltaMerge == 0 {
471+ t .Error ("unionMerge strategy not used" )
472+ }
473+ if deltaLookup == 0 {
474+ t .Error ("unionLookup strategy not used" )
475+ }
476+ // TODO requires Fixed
477+ // if deltaDisjoint == 0 {
478+ // t.Error("unionDisjoint variation not used")
479+ // }
480+ if deltaMerge + deltaLookup - deltaDisjoint == 0 {
481+ t .Error ("union non-disjoint variation not used" )
482+ }
477483 }
478484}
479485
0 commit comments