seanhenry / SwiftMockGeneratorForXcode

An Xcode extension (plugin) to generate Swift test doubles automatically.
MIT License
748 stars 47 forks source link

Subscript support. #18

Closed BohdanOrlov closed 5 years ago

BohdanOrlov commented 5 years ago

Hey, @seanhenry! I've realised that subscript is not supported:

image

protocol FeatureFlagsByKeyStoring: class {
    subscript(key: String) -> Bool? { get set }
}

class MockSubscript: FeatureFlagsByKeyStoring {

}

is is a known issue or something you want to support in future?

seanhenry commented 5 years ago

Hey @BohdanOrlov

Thanks for raising this issue. I haven’t added support for subscripts yet. I’ll add support for them soon.

seanhenry commented 5 years ago

Hey @BohdanOrlov

Generating test doubles from subscripts is now available 🎉