MCPcopy Create free account
hub / github.com/avaneev/biteopt / addCorpus

Method addCorpus

tests/tester.h:616–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614 */
615
616 void addCorpus( const int aDefDims, const CTestFn** Corpus,
617 const bool aDoRandomize, const bool aDoRandomizeAll )
618 {
619 while( FnCount < MaxFuncs )
620 {
621 if( *Corpus == NULL )
622 {
623 break;
624 }
625
626 Funcs[ FnCount ] = *Corpus;
627 FuncData[ FnCount ].DefDims = aDefDims;
628 FuncData[ FnCount ].DoRandomize = aDoRandomize;
629 FuncData[ FnCount ].DoRandomizeAll = aDoRandomizeAll;
630 FnCount++;
631 Corpus++;
632 }
633 }
634
635 /**
636 * Function runs the test. On return, SumStats object will be updated.

Callers 4

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected