API Reference | fast-check | Property based testing framework
    Preparing search index...

    Interface MapConstraints

    Constraints to be applied on map

    Since 4.4.0

    interface MapConstraints {
        depthIdentifier?: string | DepthIdentifier;
        maxKeys?: number;
        minKeys?: number;
        size?: SizeForArbitrary;
    }
    Index

    Properties

    depthIdentifier?: string | DepthIdentifier

    Depth identifier can be used to share the current depth between several instances.

    By default, if not specified, each instance of map will have its own depth. In other words: you can have depth=1 in one while you have depth=100 in another one.

    Since 4.4.0

    maxKeys?: number

    Upper bound for the number of entries defined into the generated instance

    0x7fffffff
    

    Since 4.4.0

    minKeys?: number

    Lower bound for the number of entries defined into the generated instance

    0
    

    Since 4.4.0

    Define how large the generated values should be (at max)

    Since 4.4.0