# Path: stestr/output.py
# def output_table(table, output=sys.stdout):
#     def show_row(row):
# def output_tests(tests, output=sys.stdout):
# def make_result(get_id, output=sys.stdout):
# def output_summary(successful, tests, tests_delta, time, time_delta, values,
#                    output=sys.stdout):
# def output_stream(stream, output=sys.stdout):
#     def __init__(self, process):
#     def _append_return_code_as_test(self):
#     def read(self, count=-1):
#     def readline(self):
#     def readlines(self):
# class ReturnCodeToSubunit:


import subunit
import testtools
from stestr import output
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.




def wasSuccessful(summary):
    return not (summary.errors or summary.failures or
                summary.unexpectedSuccesses)


class SummarizingResult(testtools.StreamSummary):

    def __init__(self):
        super().__init__()

    def startTestRun(self):
        super().startTestRun()
        self._first_time = None
        self._last_time = None

    def status(self, *args, **kwargs):

# Path: stestr/output.py
# def output_table(table, output=sys.stdout):
#     def show_row(row):
# def output_tests(tests, output=sys.stdout):
# def make_result(get_id, output=sys.stdout):
# def output_summary(successful, tests, tests_delta, time, time_delta, values,
#                    output=sys.stdout):
# def output_stream(stream, output=sys.stdout):
#     def __init__(self, process):
#     def _append_return_code_as_test(self):
#     def read(self, count=-1):
#     def readline(self):
#     def readlines(self):
# class ReturnCodeToSubunit:


# Path: stestr/results.py
import subunit
import testtools
from stestr import output

# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.




def wasSuccessful(summary):
    return not (summary.errors or summary.failures or
                summary.unexpectedSuccesses)


class SummarizingResult(testtools.StreamSummary):

    def __init__(self):
        super().__init__()

    def startTestRun(self):
        super().startTestRun()
        self._first_time = None
        self._last_time = None

    def status(self, *args, **kwargs):

        if kwargs.get('timestamp') is not None: