Class KotlinFilter
- java.lang.Object
-
- org.pitest.mutationtest.build.intercept.kotlin.KotlinFilter
-
- All Implemented Interfaces:
MutationInterceptor
public class KotlinFilter extends Object implements MutationInterceptor
Quick dirty hack to filter out some of the junk mutations created for kotlin classes. These are mutations in autogenerated methods not created by the programmer, such as the copy method in data classes. For the amount assume that anything on line 0 of a kotlin class is autogenerated. This won't catch everything and will probably sometimes trigger when it shouldn't, but overall is a big improvement for very little effort.
-
-
Constructor Summary
Constructors Constructor Description KotlinFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin(ClassTree clazz)voidend()Collection<MutationDetails>intercept(Collection<MutationDetails> mutations, Mutater m)InterceptorTypetype()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pitest.mutationtest.build.MutationInterceptor
initialise
-
-
-
-
Method Detail
-
intercept
public Collection<MutationDetails> intercept(Collection<MutationDetails> mutations, Mutater m)
- Specified by:
interceptin interfaceMutationInterceptor
-
type
public InterceptorType type()
- Specified by:
typein interfaceMutationInterceptor
-
begin
public void begin(ClassTree clazz)
- Specified by:
beginin interfaceMutationInterceptor
-
end
public void end()
- Specified by:
endin interfaceMutationInterceptor
-
-