2023-12-24 10:30:50 +00:00
|
|
|
module Test.Values.Vault exposing (..)
|
|
|
|
|
2024-05-26 17:24:31 +00:00
|
|
|
import FastDict as Dict
|
2023-12-24 10:30:50 +00:00
|
|
|
import Fuzz exposing (Fuzzer)
|
2024-05-08 05:57:08 +00:00
|
|
|
import Internal.Tools.Json as Json
|
2023-12-24 10:30:50 +00:00
|
|
|
import Internal.Values.Vault exposing (Vault)
|
|
|
|
import Test exposing (..)
|
2024-05-08 05:57:08 +00:00
|
|
|
import Test.Tools.Hashdict as TestHashdict
|
|
|
|
import Test.Values.Room as TestRoom
|
2024-05-27 14:39:50 +00:00
|
|
|
import Test.Values.User as TestUser
|
2023-12-24 10:30:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
vault : Fuzzer Vault
|
|
|
|
vault =
|
2024-06-08 13:25:49 +00:00
|
|
|
Fuzz.map4 Vault
|
2024-05-08 05:57:08 +00:00
|
|
|
(Fuzz.string
|
|
|
|
|> Fuzz.map (\k -> ( k, Json.encode Json.int 0 ))
|
|
|
|
|> Fuzz.list
|
|
|
|
|> Fuzz.map Dict.fromList
|
|
|
|
)
|
2024-06-08 13:25:49 +00:00
|
|
|
(Fuzz.maybe Fuzz.string)
|
2024-05-08 05:57:08 +00:00
|
|
|
(TestHashdict.fuzzer .roomId TestRoom.fuzzer)
|
2024-05-30 11:54:30 +00:00
|
|
|
(Fuzz.maybe TestUser.fuzzer)
|