mirror of
https://github.com/littlefs-project/littlefs.git
synced 2025-12-01 12:20:02 +00:00
scripts: Reverted -o/-O to include all by-fields by default
For the same reason we output all field fields by default: Because machines can process more information than humans can. Worst case, by fields can still be limited via explicit -b/--by flags.
This commit is contained in:
@ -970,8 +970,10 @@ def main(gcda_paths, *,
|
||||
if by is None:
|
||||
if (args.get('annotate')
|
||||
or args.get('lines')
|
||||
or args.get('branches')):
|
||||
by = ['file', 'line']
|
||||
or args.get('branches')
|
||||
or args.get('output')
|
||||
or args.get('output_json')):
|
||||
by = CovResult._by
|
||||
else:
|
||||
by = ['function']
|
||||
|
||||
@ -981,7 +983,7 @@ def main(gcda_paths, *,
|
||||
or args.get('branches')
|
||||
or args.get('output')
|
||||
or args.get('output_json')):
|
||||
fields = ['calls', 'hits', 'funcs', 'lines', 'branches']
|
||||
fields = CovResult._fields
|
||||
elif not hits:
|
||||
fields = ['lines', 'branches']
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user