public void OnReport(StatisticalReport e) { Loger.Process(LogType.INFO, "update {0}:{1} unit test report", e.Node, e.UnitTest); NodeAgent agent = NodeManager.Get(e.Node); agent.SetUnitTestStatistal(e.UnitTest, e); }
public StatisticalReport GetUnitTestStatistal(string name) { StatisticalReport result = null; mUnitTestStatistial.TryGetValue(name, out result); return(result); }
public GetUnitTestReportReponse OnGetUnitTestReport(GetUnitTestReport e) { GetUnitTestReportReponse response = new Network.GetUnitTestReportReponse(); foreach (string node in e.Nodes) { NodeAgent agent = NodeManager.Get(node); StatisticalReport item = agent.GetUnitTestStatistal(e.UnitTest); if (item != null) { response.Items.Add(item); } } return(response); }
public void SetUnitTestStatistal(string name, StatisticalReport item) { mUnitTestStatistial[name] = item; }
public void RemoveUnitTestStatistal(string name) { StatisticalReport result = null; mUnitTestStatistial.TryRemove(name, out result); }