MCPcopy Create free account

hub / github.com/denormal/go-gitignore / functions

Functions153 in github.com/denormal/go-gitignore

MethodGet
Set() Get attempts to retrieve an GitIgnore instance associated with the given path. If the path is not known nil is returned.
cache.go:48
MethodIgnore
compile() Ignore returns true if the pattern describes files or paths that should be ignored.
pattern.go:126
MethodIgnore
Relative() Ignore returns true if the path is ignored by this GitIgnore. Paths that are not matched by this GitIgnore are not ignored. Internally, Ign
gitignore.go:283
MethodInclude
Include returns true if the pattern describes files or paths that should be included (i.e. not ignored)
pattern.go:130
MethodInclude
Ignore() Include returns true if the path is included by this GitIgnore. Paths that are not matched by this GitIgnore are always included. Internally,
gitignore.go:296
MethodMatch
NewRepositoryWithCache() Match attempts to match the path against this repository. Matching proceeds according to normal gitignore rules, where .gtign
repository.go:174
MethodMatch
name() Match returns true if the given path matches the name pattern. If the pattern is meant for directories only, and the path is not a directory, M
pattern.go:153
MethodMatch
path() Match returns true if the given path matches the path pattern. If the pattern is meant for directories only, and the path is not a directory, M
pattern.go:193
MethodMatch
any() Match returns true if the given path matches the any pattern. If the pattern is meant for directories only, and the path is not a directory, Mat
pattern.go:233
FunctionNewRepository
repository{} NewRepository returns a GitIgnore instance representing a git repository with root directory base. If base is not a directory, or base ca
repository.go:26
MethodNext
NewLexer() Next returns the next Token from the Lexer reader. If an error is encountered, it will be returned as an Error instance, detailing the erro
lexer.go:45
MethodParse
NewParser() Parse returns all well-formed .gitignore Patterns contained within the parser stream. Parsing will terminate at the end of the stream, or
parser.go:45
MethodPosition
NewError()
error.go:25
MethodPosition
Position returns the position of the first token of this pattern.
pattern.go:133
MethodSet
Cache() Set stores the GitIgnore ignore against its path.
cache.go:30
MethodString
String returns the string representation of the pattern.
pattern.go:136
MethodString
Position() String returns the string representation of the current position of the Lexer.
lexer.go:134
MethodString
String() returns a concatenated string of all runes represented by the list of tokens.
tokenset.go:8
MethodString
String returns a string representation of the Token type.
tokentype.go:19
FunctionTestCache
(t *testing.T)
cache_test.go:9
FunctionTestIgnore
TestMatch()
match_test.go:95
FunctionTestInclude
TestIgnore()
match_test.go:152
FunctionTestInvalidRepository
TestRepositoryWithCache()
repository_test.go:221
FunctionTestInvalidRepositoryWithCache
TestInvalidRepositoryWithErrorsFalse()
repository_test.go:276
FunctionTestInvalidRepositoryWithErrors
TestInvalidRepositoryWithFile()
repository_test.go:242
FunctionTestInvalidRepositoryWithErrorsFalse
TestInvalidRepositoryWithErrors()
repository_test.go:259
FunctionTestInvalidRepositoryWithFile
TestInvalidRepository()
repository_test.go:231
FunctionTestLexerCarriageReturn
TestLexerNewLine() TestLexerCarriageReturn tests the behavour of the gitignore.Lexer when the input data explicitly uses "\r\n" as the line separator
lexer_test.go:32
FunctionTestLexerInvalidCarriageReturn
TestLexerInvalidNewLine()
lexer_test.go:51
FunctionTestLexerInvalidNewLine
TestLexerCarriageReturn()
lexer_test.go:44
FunctionTestLexerNewLine
TestLexerNewLne tests the behavour of the gitignore.Lexer when the input data explicitly uses "\n" as the line separator
lexer_test.go:13
FunctionTestMatch
(t *testing.T)
match_test.go:11
FunctionTestMatchAbsolute
TestInclude()
match_test.go:209
FunctionTestMatchRelative
TestMatchAbsolute()
match_test.go:261
FunctionTestNew
TestNewWithCache()
gitignore_test.go:154
FunctionTestNewFromEmptyFile
TestNewFromWhitespaceFile()
gitignore_test.go:40
FunctionTestNewFromFile
gitignoretest{}
gitignore_test.go:20
FunctionTestNewFromWhitespaceFile
TestNewFromFile()
gitignore_test.go:30
FunctionTestNewWithCache
TestNewWithErrors()
gitignore_test.go:86
FunctionTestNewWithErrors
TestNewFromEmptyFile()
gitignore_test.go:50
FunctionTestParser
parsetest{} TestParser tests the behaviour of gitignore.Parser
parser_test.go:19
FunctionTestParserError
TestParser() TestParserError tests the behaviour of the gitignore.Parser with an error handler that returns false on receiving an error
parser_test.go:35
FunctionTestParserInvalid
TestParserError()
parser_test.go:50
FunctionTestParserInvalidFalse
TestParserInvalid()
parser_test.go:65
FunctionTestPosition
(t *testing.T)
position_test.go:8
FunctionTestRepository
invalidtest{}
repository_test.go:97
FunctionTestRepositoryWithCache
TestRepositoryWithErrorsFalse()
repository_test.go:168
FunctionTestRepositoryWithErrors
TestRepositoryWithFile()
repository_test.go:126
FunctionTestRepositoryWithErrorsFalse
TestRepositoryWithErrors()
repository_test.go:147
FunctionTestRepositoryWithFile
TestRepository()
repository_test.go:111
FunctionTestToken
(t *testing.T)
token_test.go:10
MethodUnderlying
()
error.go:27
Functionexclude
dir()
util_test.go:118
← previous101–153 of 153, ranked by callers