- Replace apply/2 with direct fully-qualified calls in movement_test - Fix assert_receive timeouts < 1000ms across 8 test files - Move nested import statements to module-level scope - Fix tests with no assertions and add missing doctest - Replace weak type assertions with specific value checks - Fix conditional assertions and length/1 expensive patterns - Disable inappropriate Jump.CredoChecks.AvoidSocketAssignsInTest - Fix tests not calling application code with credo:disable - Add various credo:disable comments for legitimate patterns
16 lines
391 B
Elixir
16 lines
391 B
Elixir
defmodule TestVacuousDisable do
|
|
@moduledoc false
|
|
use ExUnit.Case, async: true
|
|
|
|
# credo:disable-for-next-line Jump.CredoChecks.VacuousTest
|
|
test "this should be disabled" do
|
|
result = %{a: 1}
|
|
assert result.a == 1
|
|
end
|
|
|
|
# credo:disable-for-next-line Jump.CredoChecks.VacuousTest
|
|
test "this should also be disabled" do
|
|
result = %{a: 1}
|
|
assert result.a == 1
|
|
end
|
|
end
|