mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-09-16 18:37:33 +00:00
Expose IsTest Method (#1)
This commit is contained in:
@@ -237,4 +237,14 @@ public class Enry {
|
||||
public static synchronized String getColor(String language) {
|
||||
return toJavaString(nativeLib.GetColor(toGoString(language)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Reports whether the given path is a test path or not.
|
||||
*
|
||||
* @param path of the file or directory
|
||||
* @return whether it's test or not
|
||||
*/
|
||||
public static synchronized boolean isTest(String path) {
|
||||
return toJavaBool(nativeLib.IsTest(toGoString(path)));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user