Sha256: e4b245b45111eead8eced6617c666475c206b69ddc39b193bb62dd38b39a3a63

Contents?: true

Size: 393 Bytes

Versions: 13

Compression:

Stored size: 393 Bytes

Contents

module PropCheck
  class Property
    Configuration = Struct.new(:verbose, :n_runs, :max_generate_attempts, :max_shrink_steps, keyword_init: true) do

      def initialize(verbose: false, n_runs: 1_000, max_generate_attempts: 10_000, max_shrink_steps: 10_000)
        super
      end

      def merge(other)
        Configuration.new(**self.to_h.merge(other.to_h))
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
prop_check-0.11.0 lib/prop_check/property/configuration.rb
prop_check-0.10.4 lib/prop_check/property/configuration.rb
prop_check-0.10.3 lib/prop_check/property/configuration.rb
prop_check-0.10.2 lib/prop_check/property/configuration.rb
prop_check-0.10.1 lib/prop_check/property/configuration.rb
prop_check-0.10.0 lib/prop_check/property/configuration.rb
prop_check-0.9.0 lib/prop_check/property/configuration.rb
prop_check-0.8.0 lib/prop_check/property/configuration.rb
prop_check-0.7.1 lib/prop_check/property/configuration.rb
prop_check-0.7.0 lib/prop_check/property/configuration.rb
prop_check-0.6.2 lib/prop_check/property/configuration.rb
prop_check-0.6.1 lib/prop_check/property/configuration.rb
prop_check-0.6.0 lib/prop_check/property/configuration.rb