-
Uses native vim regexes (which are slightly different from the regexes used by grep, ack, ag, etc) so the patterns are the same as with vim's within-file search patterns.
You can do a normal within-file search first, then re-use the same pattern to
Uses native vim regexes (which are slightly different from the regexes used by grep, ack, ag, etc) so the patterns are the same as with vim's within-file search patterns.
You can do a normal within-file search first, then re-use the same pattern to
When applications are running in production, they become black boxes that need to be traced and monitored. One of the simplest, yet main, ways to do so is logging. Logging allows us - at the time we develop our software - to instruct the program to emit information while the system is running that will be useful for us and our sysadmins.
test_params = { | |
'empty_line': ('', {}), | |
'get_ok': ('GET 200', {'request': 'GET', 'status': '200'}), | |
'get_not_found': ('GET 404', {'request': 'GET', 'status': '404'}), | |
} | |
@pytest.mark.parametrize('line,expected', test_params.values(), ids=test_params.keys()) | |
def test_decode(self, line, expected): | |
assert Decoder().decode(line) == expected | |