Home
last modified time | relevance | path

Searched refs:struct_or_map (Results 1 – 7 of 7) sorted by relevance

/dports/lang/elixir-devel/elixir-1.13.1/lib/elixir/test/elixir/
H A Dkernel_test.exs324 defp struct_or_map?(arg) when is_struct(arg) or is_map(arg), do: true
325 defp struct_or_map?(_arg), do: false
339 assert struct_or_map?(%Macro.Env{}) == true
340 assert struct_or_map?(%{}) == true
341 assert struct_or_map?(10) == false
347 defp struct_or_map?(arg, name) when is_struct(arg, name) or is_map(arg), do: true
348 defp struct_or_map?(_arg, _name), do: false
370 assert struct_or_map?(%{}, "foo") == false
371 assert struct_or_map?(%{}, Macro.Env) == true
372 assert struct_or_map?(%Macro.Env{}, Macro.Env) == true
/dports/lang/elixir/elixir-1.12.3/lib/elixir/test/elixir/
H A Dkernel_test.exs324 defp struct_or_map?(arg) when is_struct(arg) or is_map(arg), do: true
325 defp struct_or_map?(_arg), do: false
339 assert struct_or_map?(%Macro.Env{}) == true
340 assert struct_or_map?(%{}) == true
341 assert struct_or_map?(10) == false
347 defp struct_or_map?(arg, name) when is_struct(arg, name) or is_map(arg), do: true
348 defp struct_or_map?(_arg, _name), do: false
370 assert struct_or_map?(%{}, "foo") == false
371 assert struct_or_map?(%{}, Macro.Env) == true
372 assert struct_or_map?(%Macro.Env{}, Macro.Env) == true
/dports/lang/erlang-runtime23/otp-OTP-23.3.4.10/lib/compiler/test/
H A Dguard_SUITE.erl2534 false = struct_or_map(a, "foo"),
2535 false = struct_or_map(a, foo),
2536 false = struct_or_map(#{}, "foo"),
2537 true = struct_or_map(#{}, foo),
2568 struct_or_map(Arg, Name) when function
2571 struct_or_map(_Arg, _Name) -> function
/dports/lang/erlang-runtime24/otp-OTP-24.1.7/lib/compiler/test/
H A Dguard_SUITE.erl2593 false = struct_or_map(a, "foo"),
2594 false = struct_or_map(a, foo),
2595 false = struct_or_map(#{}, "foo"),
2596 true = struct_or_map(#{}, foo),
2631 struct_or_map(Arg, Name) when function
2634 struct_or_map(_Arg, _Name) -> function
/dports/lang/erlang-wx/otp-OTP-24.1.7/lib/compiler/test/
H A Dguard_SUITE.erl2593 false = struct_or_map(a, "foo"),
2594 false = struct_or_map(a, foo),
2595 false = struct_or_map(#{}, "foo"),
2596 true = struct_or_map(#{}, foo),
2631 struct_or_map(Arg, Name) when function
2634 struct_or_map(_Arg, _Name) -> function
/dports/lang/erlang/otp-OTP-24.1.7/lib/compiler/test/
H A Dguard_SUITE.erl2593 false = struct_or_map(a, "foo"),
2594 false = struct_or_map(a, foo),
2595 false = struct_or_map(#{}, "foo"),
2596 true = struct_or_map(#{}, foo),
2631 struct_or_map(Arg, Name) when function
2634 struct_or_map(_Arg, _Name) -> function
/dports/lang/erlang-java/otp-OTP-24.1.7/lib/compiler/test/
H A Dguard_SUITE.erl2593 false = struct_or_map(a, "foo"),
2594 false = struct_or_map(a, foo),
2595 false = struct_or_map(#{}, "foo"),
2596 true = struct_or_map(#{}, foo),
2631 struct_or_map(Arg, Name) when function
2634 struct_or_map(_Arg, _Name) -> function