# US 10,956,309 B2 · Source code management systems and methods

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,956,309 B2
- Document ID: US10956309B2
- Status: Granted
- Kind: B2
- Application number: 16/145,210
- Filed: 2018-09-28
- Published: 2020-04-02
- Granted: 2021-03-23
- Earliest claimed: 2018-09-28
- Assignees: Atlassian Pty Ltd.
- Applicants: Atlassian Pty Ltd
- Inventors: Artem Koshelev
- Web page: https://patentgrep.com/patent/US10956309B2

## CPC

- G06F 11/3676: {for coverage analysis}
- G06F 8/71: Version control (security arrangements therefor G06F21/57); Configuration management
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/3692: {for test results analysis}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Described herein is a computer implemented method comprising accessing code coverage information, the code coverage information describing units of a particular version of a particular source code base and, for each unit, a code coverage status indicating whether the test suite covered, did not cover, or partially covered the unit. The code coverage information is then associated with the relevant source code by, for each unit described in the code coverage information, identifying the corresponding unit in the source code and associating the code coverage status as described in the code coverage information with the corresponding unit identified.

## Claims

### Claim 1

A computer implemented method comprising:
accessing code coverage information at a source code management system, the code coverage information describing units of a particular version of a particular source code base and, for each unit, a code coverage status indicating whether a test suite tested against the particular version of the particular source code base covered, did not cover, or partially covered the unit;
associating the code coverage information with the particular version of the particular source code base, wherein associating the code coverage information with the particular version of the particular source code base comprises:
for each unit described in the code coverage information:
identifying the corresponding unit in the particular version of the particular source code base; and
associating the code coverage status as described in the code coverage information with the corresponding unit identified;
receiving a request to display a difference regarding the particular version of the particular source code base with respect to a previous version of the particular source code base; and
in response to receiving the request:
generating diff information based on the particular version and the previous version;
generating user interface information, the user interface information comprising:
a source code pane showing a differential view computed based on the diff information and comprising units of the particular source code base and the previous version of the particular source code base;
a revision indicator pane generated using the diff information and comprising a set of revision indicator symbols, each revision indicator symbol in the set of revision indicator symbols corresponding to a unit of the particular source code base of the differential view; and
a code coverage pane, showing a set of code coverage indicators, each code coverage indicator in the set of code coverage indicators corresponding to a unit of the particular source code base in the differential view; and
causing the user interface information to be displayed on a display.

### Claim 2 (depends on 1)

The computer implemented method of claim 1, wherein accessing code coverage information comprises receiving code coverage information from a code coverage module, the code coverage module generating the code coverage information based on raw code coverage results generated by a code coverage tool.

### Claim 3 (depends on 1)

The computer implemented method of claim 1, wherein accessing code coverage information comprises:
receiving raw code coverage test results from a code coverage tool; and
processing the raw code coverage test results to generate the code coverage information.

### Claim 4 (depends on 1)

The computer implemented method of claim 1, wherein each code coverage indicator in the set of code coverage indicators comprises one of: a covered indicator; a partially covered indicator; and a not covered indicator.

### Claim 5 (depends on 1)

The computer implemented method of claim 1, wherein each revision indicator symbol in the set of revision indicator symbols comprises one of: a new indicator, indicating the unit is new in the particular version of the particular source code base; a deleted indicator, indicating that the unit was deleted from the previous version of the particular source code base; and an unchanged indicator, indicating that the unit was substantively unchanged from the previous version of the particular source code base.

### Claim 6 (depends on 1)

The computer implemented method of claim 1, wherein the code coverage indicator is one of: a covered indicator; a partially covered indicator; and a not covered indicator.

### Claim 7 (depends on 1)

The computer implemented method of claim 1, further comprising:
receiving an indication that one or more units of the particular version of the particular source code base are deleted from a source code manager system;
in response to receiving the indication, automatically deleting code coverage information associated with the one or more units deleted from the source code manager system;
wherein the code coverage information is stored at the source code manager system.

### Claim 8 (depends on 1)

The computer implemented method of claim 1, wherein the user interface information further comprises:
a first line number pane showing a first set of source codes line numbers, each source code line number in the first set of source code line numbers corresponding to a unit of the particular source code base included in the previous version of the particular source code base; and
a second line number pane showing a second set of source code line numbers, each source code line number in the second set of source code line numbers corresponding to a unit of the particular source code base included in the particular version of the particular source code base.

### Claim 9

A system comprising:
a processor,
a communication interface, and
a non-transitory computer-readable storage medium storing sequences of instructions, which when executed by the processor, cause the processor to:
access code coverage information at a source code management system, the code coverage information describing units of a particular version of a particular source code base and, for each unit, a code coverage status indicating whether a test suite tested against the particular version of the particular source code base covered, did not cover, or partially covered the unit;
associate the code coverage information with the particular version of the particular source code base, wherein associating the code coverage information with the particular version of the particular source code base comprises:
for each unit described in the code coverage information:
identifying the corresponding unit in the particular version of the particular source code base; and
associating the code coverage status as described in the code coverage information with the corresponding unit identified;
receiving a request to display a difference regarding the particular version of the particular source code base with respect to a previous version of the particular source code base; and
in response to receiving the request:
generating diff information based on the particular version and the previous version;
generating user interface information, the user interface information comprising:
a source code pane showing a differential view computed based on the diff information and comprising units of the particular source code base and the previous version of the particular source code base;
a revision indicator pane generated using the diff information and comprising a set of revision indicator symbols, each revision indicator symbol in the set of revision indicator symbols corresponding to a unit of the particular source code base in the differential view; and
a code coverage pane, showing a set of code coverage indicators, each code coverage indicator in the set of code coverage indicators corresponding to a unit of the particular source code base in the differential view; and
causing the user interface information to be displayed on a display.

### Claim 10 (depends on 9)

The system of claim 9, wherein accessing code coverage information comprises receiving, via the communication interface, code coverage information from a code coverage module, the code coverage module generating the code coverage information based on raw code coverage results generated by a code coverage tool.

### Claim 11 (depends on 10)

The system of claim 10, wherein accessing code coverage information comprises:
receiving, via the communication interface, raw code coverage test results from the code coverage tool; and
processing, by the processor, the raw code coverage test results to generate the code coverage information.

### Claim 12 (depends on 9)

The system of claim 9, wherein each code coverage indicator in the set of code coverage indicators comprises one of: a covered indicator; a partially covered indicator; and a not covered indicator.

### Claim 13 (depends on 9)

The system of claim 9, wherein each revision indicator symbol in the set of revision indicator symbols comprises one of: a new indicator, indicating the unit is new in the particular version of the particular source code base; a deleted indicator, indicating that the unit was deleted from the previous version of the particular source code base; and an unchanged indicator, indicating that the unit was substantively unchanged from the previous version of the particular source code base.

### Claim 14 (depends on 9)

The system of claim 9, wherein the code coverage indicator is one of: a covered indicator; a partially covered indicator; and a not covered indicator.

### Claim 15 (depends on 9)

The system of claim 9, wherein when executed by the processor, the sequences of instructions further cause the processor to:
receive an indication that one or more units of the particular version of the particular source code base are deleted from a source code manager system;
in response to receiving the indication, automatically delete code coverage information associated with the one or more units deleted from the source code manager system;
wherein the code coverage information is stored at the source code manager system.

### Claim 16 (depends on 9)

The system of claim 9, wherein the user interface information further comprises:
a first line number pane showing a first set of source codes line numbers, each source code line number in the first set of source code line numbers corresponding to a unit of the particular source code base included in the previous version of the particular source code base; and
a second line number pane showing a second set of source code line numbers, each source code line number in the second set of source code line numbers corresponding to a unit of the particular source code base included in the particular version of the particular source code base.

### Claim 17

Non-transient computer readable storage comprising instructions which, when executed by a processor, cause the processor to:
access code coverage information at a source code management system, the code coverage information describing units of a particular version of a particular source code base and, for each unit, a code coverage status indicating whether a test suite tested against the particular version of the particular source code base covered, did not cover, or partially covered the unit;
associate the code coverage information with the particular version of the particular source code base, wherein associating the code coverage information with the particular version of the particular source code base comprises:
for each unit described in the code coverage information:
identifying the corresponding unit in the particular version of the particular source code base; and
associating the code coverage status as described in the code coverage information with the corresponding unit identified
receiving a request to display a difference regarding the particular version of the particular source code base with respect to a previous version of the particular source code base; and
in response to receiving the request:
generating diff information based on the particular version and the previous version;
generating user interface information, the user interface information comprising:
a source code pane showing a differential view computed based on the diff information and comprising units of the particular source code base and the previous version of the particular source code base;
a revision indicator pane generated using the diff information and comprising a set of revision indicator symbols, each revision indicator symbol in the set of revision indicator symbols corresponding to a unit of the particular source code base of the differential view; and
a code coverage pane, showing a set of code coverage indicators, each code coverage indicator in the set of code coverage indicators corresponding to a unit of the particular source code base in the differential view; and
causing the user interface information to be displayed on a display.

### Claim 18 (depends on 17)

The non-transient computer readable storage system of claim 17, wherein accessing code coverage information comprises:
receiving, via a communication interface, raw code coverage test results from a code coverage tool; and
processing, by the processor, the raw code coverage test results to generate the code coverage information.

### Claim 19 (depends on 17)

The non-transient computer readable storage system of claim 17, wherein the user interface information further comprises:
a first line number pane showing a first set of source codes line numbers, each source code line number in the first set of source code line numbers corresponding to a unit of the particular source code base included in the previous version of the particular source code base; and
a second line number pane showing a second set of source code line numbers, each source code line number in the second set of source code line numbers corresponding to a unit of the particular source code base included in the particular version of the particular source code base.
