コード例 #1
0
        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);
        }
コード例 #2
0
        public StatisticalReport GetUnitTestStatistal(string name)
        {
            StatisticalReport result = null;

            mUnitTestStatistial.TryGetValue(name, out result);
            return(result);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 public void SetUnitTestStatistal(string name, StatisticalReport item)
 {
     mUnitTestStatistial[name] = item;
 }
コード例 #5
0
        public void RemoveUnitTestStatistal(string name)
        {
            StatisticalReport result = null;

            mUnitTestStatistial.TryRemove(name, out result);
        }