Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add lazy loading for feature cases #570

Merged
merged 1 commit into from
Apr 8, 2024

Commits on Apr 8, 2024

  1. feat: add lazy loading for feature cases

    This adds a new LazyFeatureCaseBuilder type that allows lazily loading feature cases only when needed. This avoids creating all feature cases upfront when defining the module.
    
    A new GetFeatureCase method on moduleCase allows retrieving a lazy feature case builder by name.
    
    The FeatureCaseBuilder interface is introduced with Labels() to get labels on feature cases. lazyFeatureCaseBuilder implements this to look up the real feature case labels only when Labels() is called.
    
    additionalAssertions on testPoint now accepts FeatureCaseBuilder instead of *featureCase directly.
    danielfbm committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    7955969 View commit details
    Browse the repository at this point in the history