Exemple #1
0
        /// <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;
            }
        }
Exemple #2
0
        /// <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);
        }
Exemple #3
0
 void _Fuzzer_OnTestEnd(object sender, EFuzzingReturn result, FuzzerStat <IFuzzingInput>[] sinput, FuzzerStat <IFuzzingConfig>[] sconfig)
 {
     _Stat.Increment(result);
 }
Exemple #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="value">Value</param>
 public EndTaskMessage(EFuzzingReturn value) : this()
 {
     Result = value;
 }