-
-
Notifications
You must be signed in to change notification settings - Fork 456
Closed
Labels
Description
The sqlite database table "context" already contains semantic information "context". As far as I know the type of the context is limited to "test" right now.
context_id | context |
---|---|
1 | test_some_method |
2 | test_some_function |
The sqlite database tables "line" and "arc" contain line/branch based production code coverage information.
Could we add production code coverage information with semantic meaning? This could be done either as (option a) a separate table "semantic" or as (option b) part of the line and arc table as additional info?
option a (separate "semantic" table):
file_id | context_id | module | class | method | function |
---|---|---|---|---|---|
1 | 1 | some_module | SomeClass | some_method | |
2 | 2 | some_module | some_function |
option b (line table with additional info):
file_id | context_id | module | class | method | function | lineno |
---|---|---|---|---|---|---|
1 | 1 | some_module | SomeClass | some_method | 17 | |
1 | 1 | some_module | SomeClass | some_method | 18 | |
... | ||||||
2 | 2 | some_module | some_function | 34 | ||
2 | 2 | some_module | some_function | 35 | ||
... |
For some consistent, exemplary database table content refer to python-tia/coveragepy_database_tables.ipynb
.