MCPcopy
hub / github.com/borgbackup/borg / test_basic

Function test_basic

src/borg/testsuite/archiver/patterns_test.py:7–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7def test_basic():
8 matcher = PatternMatcher()
9 matcher.add([parse_pattern("included")], IECommand.Include)
10 filter = build_filter(matcher, 0)
11 assert filter(Item(path="included"))
12 assert filter(Item(path="included/file"))
13 assert not filter(Item(path="something else"))
14
15
16def test_empty():

Callers

nothing calls this directly

Calls 5

addMethod · 0.95
PatternMatcherClass · 0.85
parse_patternFunction · 0.85
build_filterFunction · 0.85
filterFunction · 0.85

Tested by

no test coverage detected