bitPogo / kmock

A humble mocking library for Kotlin, KotlinJS and Kotlin Multiplatform using Kotlin Symbol Processing (KSP).
Apache License 2.0
59 stars 2 forks source link

Refactor Type Name resolver when overloaded #78

Closed bitPogo closed 2 years ago

bitPogo commented 2 years ago

Description

Currently the prefixes of type names are filtered instead of allow listed. This actually can cause unnecessarily boilerplate. The avoidance of collisions can be done when an error occurs by a consumer.

Acceptance Criteria:

  1. Add 2 new fields to the Extension - one as a feature flag/switch between the already implemented version and the new to avoid a breaking change. One for the allowList.

  2. Deprecated the existing flag.

  3. Processor implements the switch as well as the new behaviour for the FunctionGenerator/MethodGenerator

bitPogo commented 2 years ago

Done with release 0.2.0-rc01