• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

elixir-mint / mint_web_socket
89%

Build:
DEFAULT BRANCH: main
Repo Added 03 May 2022 01:40PM UTC
Token G2sXDcFadmv7UkxvI3U6DUDvloZAtLG2c regen
Build 48 Last
Files 11
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • add-dialyxir
  • add-dialyzer
  • ci
  • elixir-1.17
  • fix-ci
  • fix_encode_spec
  • main
  • patch-1
  • refs/tags/v1.0.1
  • refs/tags/v1.0.3
  • remove-dollar-sign-in-command
  • test
  • tmp
  • use-setup-erlel-beam

19 Jan 2026 05:19PM UTC coverage: 88.579% (+0.1%) from 88.451%
0c630f75d0a0f27ee337d7e1208abe15e8f20b22

push

github

the-mikedavis
Fix Elixir 1.20.0-rc.0 warnings

Mainly this involves using the pin operator (`^`) in binary pattern
matches where the size is matched out of a binary.
`Mint.WebSocket.Frame.decode_opcode/1` is also refactored to pattern
match the map directly, resolving this warning:

     warning: incompatible types given to Map.fetch/2:

         Map.fetch(
           %{
             <<0::integer-size(4), ""::binary>> => :continuation,
             <<1::integer-size(4), ""::binary>> => :text,
             <<2::integer-size(4), ""::binary>> => :binary,
             <<8::integer-size(4), ""::binary>> => :close,
             <<9::integer-size(4), ""::binary>> => :ping,
             <<10::integer-size(4), ""::binary>> => :pong
           },
           opcode
         )

     the map:

         dynamic(%{bitstring() => :binary or :close or :continuation or :ping or :pong or :text})

     does not have all required keys:

         dynamic()

     therefore this function will always return :error

     where "opcode" was given the type:

         # type: dynamic()
         # from: lib/mint/web_socket/frame.ex:289:22
         opcode

     typing violation found at:
     │
 290 │     with :error <- Map.fetch(@reverse_opcodes, opcode) do
     │                        ~
     │
     └─ lib/mint/web_socket/frame.ex:290:24: Mint.WebSocket.Frame.decode_opcode/1

5 of 5 new or added lines in 2 files covered. (100.0%)

318 of 359 relevant lines covered (88.58%)

147779.77 hits per line

Relevant lines Covered
Build:
Build:
359 RELEVANT LINES 318 COVERED LINES
147779.77 HITS PER LINE
Source Files on main
  • Tree
  • List 11
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
0c630f75... main Fix Elixir 1.20.0-rc.0 warnings Mainly this involves using the pin operator (`^`) in binary pattern matches where the size is matched out of a binary. `Mint.WebSocket.Frame.decode_opcode/1` is also refactored to pattern match the map directly, re... push 19 Jan 2026 05:25PM UTC the-mikedavis github
88.58
151f26fd... test Fix Elixir 1.20 warnings push 19 Jan 2026 05:16PM UTC the-mikedavis github
88.58
ab070d41... main Fix CI badge in README push 05 Dec 2025 04:35PM UTC the-mikedavis github
88.45
74914987... main Release 1.0.5 push 05 Nov 2025 03:05PM UTC the-mikedavis github
88.45
c2fe87f7... tmp Ignore bad dialyzer inference in autobahn client push 05 Nov 2025 03:00PM UTC the-mikedavis github
88.45
2583c083... tmp Turn off dialyzer in CI push 05 Nov 2025 02:47PM UTC the-mikedavis github
88.45
5d9304c4... main Release 1.0.4 push 14 Jun 2024 07:48PM UTC the-mikedavis github
88.48
f10d5fad... ci Wait for HTTP/2 server to enable connect protocol (Mint 1.5.0+) This is a consequence of updating Mint to 1.5.0+ - the SETTINGS frame is now handled asynchronously (for the sake of latency) and Mint returns default values until it arrives. So we ... push 14 Jun 2024 04:53PM UTC the-mikedavis github
88.48
c6d26f4b... ci Wait for HTTP/2 server to enable connect protocol (Mint 1.5.0+) This is a consequence of updating Mint to 1.5.0+ - the SETTINGS frame is now handled asynchronously (for the sake of latency) and Mint returns default values until it arrives. So we ... push 14 Jun 2024 04:49PM UTC the-mikedavis github
89.04
21b66df2... ci fix push 14 Jun 2024 04:34PM UTC the-mikedavis github
88.48
See All Builds (31)

Badge your Repo: mint_web_socket

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc