aboutcode-org / aboutcode-org/scancode-toolkit

Add match details to license detection tests

Open
#3,283 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
2.6k
Forks
791
Avg merge
1d 12h
Merged PRs (30d)
5

Description

It would help reviewing updated tests results if we were to include the match details in the expected license tests data structure in https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode_test_utils.py

The updated tests should IMHO include:
- the start and end line
- the matcher
- the "diagnostics" matched text
and should not include rule was matched

The approach should be to regenerate all expected tests once with no other change and then use this afterwards.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.