MCPcopy Create free account
hub / github.com/GerbenJavado/LinkFinder / get_parse_cli

Function get_parse_cli

test_parser.py:8–13  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

6
7# Imitate cli_output function
8def get_parse_cli(str):
9 endpoints = parser_file(str, regex_str, mode=0)
10 ret = []
11 for endpoint in endpoints:
12 ret.append(endpoint["link"])
13 return ret
14
15def test_parser_cli():
16 assert get_parse_cli("\"http://example.com\"") == ["http://example.com"]

Callers 3

test_parser_cliFunction · 0.85
test_parser_cli_multiFunction · 0.85
test_parser_uniqueFunction · 0.85

Calls 1

parser_fileFunction · 0.90

Tested by

no test coverage detected