static public int constructor(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif UnityEngine.TestTools.CoveredMethodStats o; o = new UnityEngine.TestTools.CoveredMethodStats(); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }
public static CoveredMethodStats[] GetStatsFor(MethodBase[] methods) { bool flag = methods == null; if (flag) { throw new ArgumentNullException("methods"); } CoveredMethodStats[] array = new CoveredMethodStats[methods.Length]; for (int i = 0; i < methods.Length; i++) { array[i] = Coverage.GetStatsFor(methods[i]); } return(array); }
public static CoveredMethodStats[] GetStatsFor(MethodBase[] methods) { if (methods == null) { throw new ArgumentNullException("methods"); } var result = new CoveredMethodStats[methods.Length]; for (int i = 0; i < methods.Length; ++i) { result[i] = GetStatsFor(methods[i]); } return(result); }
private static extern void GetStatsFor_Internal_Injected(MethodBase method, out CoveredMethodStats ret);