Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- isValidVersion :: Int -> UUID -> Bool
- mockUUIDs :: [UUID]
- mockUUIDToSequenceId :: UUID -> Maybe Word32
- sequenceIdToMockUUID :: Word32 -> UUID
Documentation
isValidVersion :: Int -> UUID -> Bool Source #
A pure list of UUIDs that can be used in testing. This is _almost_ a sequence counting up from zero, but we ensure that the version and variant numbers are correctly set so the resulting UUIDs validate.
mockUUIDToSequenceId :: UUID -> Maybe Word32 Source #