mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-18 22:23:07 -03:00
IsTest function for top 10 languages
This commit is contained in:
5
utils.go
5
utils.go
@ -60,6 +60,11 @@ func IsVendor(path string) bool {
|
||||
return data.VendorMatchers.Match(path)
|
||||
}
|
||||
|
||||
// IsTest returns whether or not path is a test path.
|
||||
func IsTest(path string) bool {
|
||||
return data.TestMatchers.Match(path)
|
||||
}
|
||||
|
||||
// IsBinary detects if data is a binary value based on:
|
||||
// http://git.kernel.org/cgit/git/git.git/tree/xdiff-interface.c?id=HEAD#n198
|
||||
func IsBinary(data []byte) bool {
|
||||
|
Reference in New Issue
Block a user