[New-bugs-announce] [issue43553] [sqlite3] Improve test coverage

Erlend Egeberg Aasland report at bugs.python.org
Fri Mar 19 05:40:27 EDT 2021


New submission from Erlend Egeberg Aasland <erlend.aasland at innova.no>:

Attached patch improves the code coverage of the sqlite3 module. I've used llvm-cov for coverage measurement.

I'll create a PR for this, if you're fine with this, Berker/Serhiy.

Filename                      Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------
prepare_protocol.c                 10                 7    30.00%           3                 2    33.33%          16                11    31.25%
util.c                             65                21    67.69%           3                 0   100.00%          78                26    66.67%
module.c                          306                59    80.72%          10                 1    90.00%         236                45    80.93%
row.c                             173                16    90.75%          11                 0   100.00%         146                13    91.10%
microprotocols.c                   81                 9    88.89%           3                 0   100.00%          98                15    84.69%
connection.c                     1113               155    86.07%          43                 0   100.00%        1366               179    86.90%
cache.c                           136                38    72.06%           7                 1    85.71%         227                59    74.01%
cursor.c                          758               116    84.70%          19                 0   100.00%         794               122    84.63%
statement.c                       340                22    93.53%          10                 0   100.00%         392                29    92.60%
-------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                            2982               443    85.14%         109                 4    96.33%        3353               499    85.12%

----------
components: Library (Lib)
files: improve-sqlite3-coverage.diff
keywords: patch
messages: 389060
nosy: berker.peksag, erlendaasland, serhiy.storchaka
priority: normal
severity: normal
status: open
title: [sqlite3] Improve test coverage
type: enhancement
versions: Python 3.10
Added file: https://bugs.python.org/file49892/improve-sqlite3-coverage.diff

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43553>
_______________________________________


More information about the New-bugs-announce mailing list