New submission from Erlend Egeberg Aasland <erlend.aasl...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue43553>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to