可存取涵蓋範圍相關基礎架構的輔助函式。
成員
instrumented_files_info
InstrumentedFilesInfo coverage_common.instrumented_files_info(ctx, *, source_attributes=[], dependency_attributes=[], extensions=None, metadata_files=[])
參數
參數 | 說明 |
---|---|
ctx
|
ctx;
required 規則內容。 |
source_attributes
|
sequence;
default is [] A list of attribute names which contain source files processed by this rule. |
dependency_attributes
|
sequence;
default is [] A list of attribute names which might provide runtime dependencies (either code dependencies or runfiles). |
extensions
|
字串序列;或 None ;
預設為 None 用於從 source_attributes 篩選檔案的副檔名。例如「js」。如果未提供 (或為 None),系統會將 source_attributes 中的所有檔案新增至插碼檔案;如果提供空白清單,系統則不會新增 source_attributes 中的任何檔案。 |
metadata_files
|
序列的 File;
預設為 [] 程式碼執行後,產生涵蓋範圍 LCOV 檔案所需的額外檔案。例如 C++ 的 .gcno 檔案。 |