Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/tests/utils.py
Show First 20 Lines • Show All 235 Lines • ▼ Show 20 Lines | |||||
SHA1_TO_LICENSES: Dict[bytes, List[str]] = { | SHA1_TO_LICENSES: Dict[bytes, List[str]] = { | ||||
RAW_CONTENT_IDS[0]: ["GPL"], | RAW_CONTENT_IDS[0]: ["GPL"], | ||||
RAW_CONTENT_IDS[1]: ["AGPL"], | RAW_CONTENT_IDS[1]: ["AGPL"], | ||||
RAW_CONTENT_IDS[2]: [], | RAW_CONTENT_IDS[2]: [], | ||||
} | } | ||||
SHA1_TO_CTAGS: Dict[bytes, List[Dict[str, Any]]] = { | |||||
RAW_CONTENT_IDS[0]: [ | |||||
{ | |||||
"name": "foo", | |||||
"kind": "str", | |||||
"line": 10, | |||||
"lang": "bar", | |||||
} | |||||
], | |||||
RAW_CONTENT_IDS[1]: [ | |||||
{ | |||||
"name": "symbol", | |||||
"kind": "float", | |||||
"line": 99, | |||||
"lang": "python", | |||||
} | |||||
], | |||||
RAW_CONTENT_IDS[2]: [ | |||||
{ | |||||
"name": "let", | |||||
"kind": "int", | |||||
"line": 100, | |||||
"lang": "haskell", | |||||
} | |||||
], | |||||
} | |||||
DIRECTORY = Directory( | DIRECTORY = Directory( | ||||
entries=( | entries=( | ||||
DirectoryEntry( | DirectoryEntry( | ||||
name=b"index.js", | name=b"index.js", | ||||
type="file", | type="file", | ||||
target=MAPPING_DESCRIPTION_CONTENT_SHA1GIT["text:some"], | target=MAPPING_DESCRIPTION_CONTENT_SHA1GIT["text:some"], | ||||
perms=0o100644, | perms=0o100644, | ||||
), | ), | ||||
▲ Show 20 Lines • Show All 523 Lines • Show Last 20 Lines |