Skip to content

Implement MustSafecast function in spiceerrors and use across codebase #2714

@tstirrat15

Description

@tstirrat15

See conversation here: https://github.com/authzed/spicedb/pull/2685/files#r2542339099

The idea is that in places where it's appropriate, rather than doing safecast error handling, we write a MustBugF-ish function that panics in test and passes the default value everywhere else. This should be a relatively straightforward refactor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions