Skip to content

Commit

Permalink
Remove unused parser_utils.ex (#527)
Browse files Browse the repository at this point in the history
This test support library was only reference by commented-out test code.
  • Loading branch information
jparise committed Nov 23, 2020
1 parent 1179cb2 commit b89c5d5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 213 deletions.
199 changes: 0 additions & 199 deletions test/support/lib/parser_utils.ex

This file was deleted.

14 changes: 0 additions & 14 deletions test/thrift/protocol/binary_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -324,20 +324,6 @@ defmodule BinaryProtocolTest do
assert %OldChangeyStruct{id: 12345, username: "stinkypants"} == deserialized
end

# test "nil nested fields get their default value" do
# erlang_nested = serialize_nesting_to_erlang(user: user(:elixir, username: "frank"))

# assert {:Nesting, user, nested} = erlang_nested
# assert user == user(:erlang, username: "frank")
# assert nested == {:SharedStruct, 44291, "Look at my value..."}

# erlang_nested = serialize_nesting_to_erlang(nested: %Shared.SharedStruct{key: 2916, value: "my value"})

# assert {:Nesting, user, nested} = erlang_nested
# assert nested == {:SharedStruct, 2916, "my value"}
# assert user == user(:erlang)
# end

test "primitive serializers work as expected" do
assert <<1::size(8)>> == Binary.serialize(:bool, true)
assert <<0::size(8)>> == Binary.serialize(:bool, false)
Expand Down

0 comments on commit b89c5d5

Please sign in to comment.