Skip to content

Expose Test helpers for testing custom locker implementations #991

@mfridman

Description

@mfridman

Users implementing custom Locker or SessionLocker interfaces would benefit from access to test helper functions to verify their implementations function correctly under concurrent access.

Currently, these helpers are only available internally, but since they use the public Locker and SessionLocker interfaces, they could be exposed to assist users in testing their custom locker implementations to ensure they follow the expected locking contract (such as only one locker acquiring the lock, others failing appropriately, avoiding deadlocks, etc.). This approach would be similar to how other Go packages expose test helpers for interface implementations.

Consider moving it to a public testing package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions