@@ -280,6 +280,21 @@
Loading
280 280
        self._buildCompleteConsumer.stopConsuming()
281 281
        self._buildStartedConsumer.stopConsuming()
282 282
283 +
    @defer.inlineCallbacks
284 +
    def _got_event(self, key, msg):
285 +
        # This function is used only from tests
286 +
        if key[0] == 'builds':
287 +
            if key[2] == 'new':
288 +
                yield self.buildStarted(key, msg)
289 +
                return
290 +
            elif key[2] == 'finished':
291 +
                yield self.buildComplete(key, msg)
292 +
                return
293 +
        if key[0] == 'buildsets' and key[2] == 'complete':  # pragma: no cover
294 +
            yield self.buildsetComplete(key, msg)
295 +
            return
296 +
        raise Exception('Invalid key for _got_event: {}'.format(key))  # pragma: no cover
297 +
283 298
    @defer.inlineCallbacks
284 299
    def buildStarted(self, key, build):
285 300
        if self.startCB is None:

@@ -62,6 +62,18 @@
Loading
62 62
        self._buildCompleteConsumer.stopConsuming()
63 63
        self._buildStartedConsumer.stopConsuming()
64 64
65 +
    @defer.inlineCallbacks
66 +
    def _got_event(self, key, msg):
67 +
        # This function is used only from tests
68 +
        if key[0] != 'builds':  # pragma: no cover
69 +
            raise Exception('Invalid key for _got_event: {}'.format(key))
70 +
        if key[2] == 'new':
71 +
            yield self.buildStarted(key, msg)
72 +
        elif key[2] == 'finished':
73 +
            yield self.buildFinished(key, msg)
74 +
        else:  # pragma: no cover
75 +
            raise Exception('Invalid key for _got_event: {}'.format(key))
76 +
65 77
    def buildStarted(self, key, build):
66 78
        return self.getMoreInfoAndSend(build)
67 79
Files Coverage
master/buildbot 90.14%
worker/buildbot_worker 85.09%
Project Totals (349 files) 89.84%
13414.2
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
13414.1
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
13414.3
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
Untitled

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading