Home
last modified time | relevance | path

Searched refs:mock_ends_metrics (Results 1 – 2 of 2) sorted by relevance

/tools/asuite/aidegen/lib/
Daidegen_metrics_unittest.py62 def test_send_exception_metrics(self, mock_ends_metrics): argument
64 mock_ends_metrics.return_value = True
66 self.assertTrue(mock_ends_metrics.called)
/tools/asuite/aidegen/
Daidegen_main_unittest.py128 def test_main_with_normal(self, mock_main, mock_ends_metrics, argument
136 self.assertFalse(mock_ends_metrics.called)
138 mock_ends_metrics.assert_called_with(constant.EXIT_CODE_NORMAL)
142 def test_main_with_build_fail_errors(self, mock_main, mock_ends_metrics): argument
149 mock_ends_metrics.assert_called_with(
154 def test_main_with_io_errors(self, mock_main, mock_ends_metrics): argument
161 mock_ends_metrics.assert_called_with(constant.EXIT_CODE_EXCEPTION,