copy

abstract fun copy(newScope: MokkeryScope? = null, block: ERROR CLASS: Symbol not found for SpyFactoryConfigurer.Block = { }): SpyFactory(source)

Copies this factory with applied block.

If newScope is provided, the copy derives its context from it instead of the scope of this factory.