public class IgnoreMatcherTest extends Object
Constructor and Description |
---|
IgnoreMatcherTest() |
Modifier and Type | Method and Description |
---|---|
void |
assertMatched(String pattern,
String target)
Check for a match.
|
void |
assertNotMatched(String pattern,
String target)
Check for a match.
|
void |
testBasic() |
void |
testFileNameWildcards() |
void |
testGetters() |
void |
testNameOnlyMatches() |
void |
testNegation() |
void |
testParentDirectoryGitIgnores() |
void |
testResetState() |
void |
testTargetWithoutLeadingSlash() |
void |
testTrailingSlash() |
public void testBasic()
public void testFileNameWildcards()
public void testTargetWithoutLeadingSlash()
public void testParentDirectoryGitIgnores()
public void testTrailingSlash()
public void testNameOnlyMatches()
public void testNegation()
public void testGetters()
public void testResetState()
public void assertMatched(String pattern, String target)
pattern
- Pattern as it would appear in a .gitignore filetarget
- Target file path relative to repository's GIT_DIRpublic void assertNotMatched(String pattern, String target)
pattern
- Pattern as it would appear in a .gitignore filetarget
- Target file path relative to repository's GIT_DIRCopyright © 2014. All rights reserved.