public final class TestDiscoveryIndex extends java.lang.Object implements Disposable
Disposable.Parent
Constructor and Description |
---|
TestDiscoveryIndex(java.nio.file.Path basePath) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Usually not invoked directly, see class javadoc.
|
java.util.Collection<java.lang.String> |
getAffectedFiles(Couple<java.lang.String> testQName,
byte frameworkId) |
static TestDiscoveryIndex |
getInstance(Project project) |
java.util.Collection<java.lang.String> |
getTestModulesByMethodName(java.lang.String classFQName,
java.lang.String methodName,
byte frameworkId) |
MultiMap<java.lang.String,java.lang.String> |
getTestsByClassName(java.lang.String classFQName,
byte frameworkId) |
MultiMap<java.lang.String,java.lang.String> |
getTestsByFile(java.lang.String relativePath,
byte frameworkId) |
MultiMap<java.lang.String,java.lang.String> |
getTestsByMethodName(java.lang.String classFQName,
java.lang.String methodName,
byte frameworkId) |
boolean |
hasTestTrace(java.lang.String testClassName,
java.lang.String testMethodName,
byte frameworkId) |
void |
removeTestTrace(java.lang.String testClassName,
java.lang.String testMethodName,
byte frameworkId) |
void |
updateTestData(java.lang.String testClassName,
java.lang.String testMethodName,
MultiMap<java.lang.String,java.lang.String> usedMethods,
java.util.List<java.lang.String> usedFiles,
java.lang.String moduleName,
byte frameworkId) |
public static TestDiscoveryIndex getInstance(Project project)
public boolean hasTestTrace(java.lang.String testClassName, java.lang.String testMethodName, byte frameworkId)
public void removeTestTrace(java.lang.String testClassName, java.lang.String testMethodName, byte frameworkId)
public MultiMap<java.lang.String,java.lang.String> getTestsByFile(java.lang.String relativePath, byte frameworkId)
public MultiMap<java.lang.String,java.lang.String> getTestsByClassName(java.lang.String classFQName, byte frameworkId)
public MultiMap<java.lang.String,java.lang.String> getTestsByMethodName(java.lang.String classFQName, java.lang.String methodName, byte frameworkId)
public java.util.Collection<java.lang.String> getTestModulesByMethodName(java.lang.String classFQName, java.lang.String methodName, byte frameworkId)
public java.util.Collection<java.lang.String> getAffectedFiles(Couple<java.lang.String> testQName, byte frameworkId)
public void dispose()
Disposable
dispose
in interface Disposable
public void updateTestData(java.lang.String testClassName, java.lang.String testMethodName, MultiMap<java.lang.String,java.lang.String> usedMethods, java.util.List<java.lang.String> usedFiles, java.lang.String moduleName, byte frameworkId)