DangerousUnitTestShims
object DangerousUnitTestShims
This must only be used by Glok's unit tests.
There's a problem using internal
in a multi-platform project - it seems there's no way to use these internal classes/methods from a unit test.
As a workaround, the shim functions here are public
, and call the real internal
functions (i.e. they break the protection of the internal
keyword).
Note, these methods are deliberately cumbersome to use, so that they aren't accidentally used by application developers.
Functions
Link copied to clipboard
fun createBitmapFont(identifier: FontIdentifier, paddingX: Int, paddingY: Int, maxTextureWidth: Int): BitmapFont