Package aQute.bnd.make.coverage
Class CoverageResource
- java.lang.Object
-
- aQute.bnd.osgi.WriteResource
-
- aQute.bnd.make.coverage.CoverageResource
-
- All Implemented Interfaces:
Resource,java.io.Closeable,java.lang.AutoCloseable
public class CoverageResource extends WriteResource
Creates an XML Coverage report. This class can be used as a resource so the report is created only when the JAR is written.
-
-
Constructor Summary
Constructors Constructor Description CoverageResource(java.util.Collection<Clazz> testsuite, java.util.Collection<Clazz> service)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static TagdoMethod(Tag tag, Clazz.MethodDef method)longlastModified()static TagtoTag(java.util.Map<Clazz.MethodDef,java.util.List<Clazz.MethodDef>> catalog)voidwrite(java.io.OutputStream out)-
Methods inherited from class aQute.bnd.osgi.WriteResource
buffer, close, getExtra, openInputStream, setExtra, size
-
-
-
-
Method Detail
-
lastModified
public long lastModified()
- Specified by:
lastModifiedin interfaceResource- Specified by:
lastModifiedin classWriteResource
-
write
public void write(java.io.OutputStream out) throws java.io.IOException- Specified by:
writein interfaceResource- Specified by:
writein classWriteResource- Throws:
java.io.IOException
-
toTag
public static Tag toTag(java.util.Map<Clazz.MethodDef,java.util.List<Clazz.MethodDef>> catalog)
-
doMethod
private static Tag doMethod(Tag tag, Clazz.MethodDef method)
-
-