Skip to content

Commit c2fe87f

Browse files
committed
Ignore bad dialyzer inference in autobahn client
1 parent 95e9a7b commit c2fe87f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/fixtures/autobahn_client.ex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ defmodule AutobahnClient do
77
import Kernel, except: [send: 2]
88
require Logger
99

10+
# Dialyzer incorrectly infers that `Mint.WebSocket.new/4` in
11+
# `connect/1,2` will always return `{error, conn, reason}`.
12+
@dialyzer {:nowarn_function,
13+
connect: 1,
14+
connect: 2,
15+
get_case_count: 0,
16+
get_case_info: 1,
17+
get_case_status: 1,
18+
run_case: 1,
19+
run_case: 2,
20+
update_reports: 0}
21+
1022
defstruct [:conn, :websocket, :ref, messages: [], next: :cont, sent_close?: false, buffer: <<>>]
1123

1224
defguardp is_close_frame(frame)

0 commit comments

Comments
 (0)