this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 14 lines 432 B view raw
1defmodule Hobbes.FuzzUtils do 2 @spec validate_opts(keyword, [atom | {atom, term}]) :: map 3 def validate_opts(opts, expected) do 4 Map.new(expected, fn 5 {key, default} -> 6 {key, Keyword.get(opts, key, default)} 7 key -> 8 case Keyword.fetch(opts, key) do 9 {:ok, value} -> {key, value} 10 :error -> raise "Key #{inspect(key)} was not found in #{inspect(opts)}" 11 end 12 end) 13 end 14end