copy

abstract fun copy(newScope: MokkeryScope? = null, block: 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.