/// <summary> /// Increment /// </summary> /// <param name="result">Result</param> public void Increment(EFuzzingReturn result) { Tests++; switch (result) { case EFuzzingReturn.Crash: Crashes++; break; case EFuzzingReturn.Fail: Fails++; break; } }
/// <summary> /// Raise end of test /// </summary> /// <param name="result">Result</param> void RaiseOnTestEnd(EFuzzingReturn result, FuzzerStat <IFuzzingInput>[] sinput, FuzzerStat <IFuzzingConfig>[] sconfig) { if (sinput != null) { foreach (FuzzerStat <IFuzzingInput> i in sinput) { i.Increment(result); } } if (sconfig != null) { foreach (FuzzerStat <IFuzzingConfig> i in sconfig) { i.Increment(result); } } OnTestEnd?.Invoke(this, result, sinput, sconfig); }
void _Fuzzer_OnTestEnd(object sender, EFuzzingReturn result, FuzzerStat <IFuzzingInput>[] sinput, FuzzerStat <IFuzzingConfig>[] sconfig) { _Stat.Increment(result); }
/// <summary> /// Constructor /// </summary> /// <param name="value">Value</param> public EndTaskMessage(EFuzzingReturn value) : this() { Result = value; }