Improve coveralls coverage

pull/871/head
Stamates 6 years ago
parent 4642a646b9
commit 5b8ec2324e
  1. 11
      apps/block_scout_web/lib/block_scout_web/views/address_view.ex
  2. 4
      apps/block_scout_web/test/block_scout_web/features/pages/address_page.ex

@ -141,17 +141,6 @@ defmodule BlockScoutWeb.AddressView do
|> Base.encode64()
end
def render_partial(%{partial: partial, address: address, contract: contract?, truncate: truncate}) do
render(
partial,
address: address,
contract: contract?,
truncate: truncate
)
end
def render_partial(text), do: text
def smart_contract_verified?(%Address{smart_contract: %SmartContract{}}), do: true
def smart_contract_verified?(%Address{smart_contract: nil}), do: false

@ -113,10 +113,6 @@ defmodule BlockScoutWeb.AddressPage do
css("[data-transaction-hash='#{hash}'] [data-test='address_hash_link'] [data-address-hash='#{address_hash}']")
end
def transaction_count do
css("[data-selector='transaction-count']")
end
def transaction_status(%Transaction{hash: transaction_hash}) do
css("[data-transaction-hash='#{transaction_hash}'] [data-test='transaction_status']")
end

Loading…
Cancel
Save