• 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: main
CHANGE BRANCH
x
Reset
Sync Branches
  • main
  • add-dialyxir
  • add-dialyzer
  • ci
  • elixir-1.17
  • fix-ci
  • fix_encode_spec
  • 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
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
5d9304c4... main Release 1.0.4 push 14 Jun 2024 07:48PM UTC the-mikedavis github
88.48
87f5ce42... main minor: Use literal list syntax instead of a descending range This removes a warning from `4..1` present in Elixir 1.17+. We don't switch to `4..1//-1` so that we can maintain compatibility with Elixir versions before the range-step syntax was int... push 02 Jun 2024 03:41PM UTC the-mikedavis github
89.2
7e298781... main Add 1.0.2 changelog notes push 11 Dec 2022 10:10PM UTC the-mikedavis github
89.17
ab1f6fe1... main Align WebSocket.Frame.encode/2 spec with WebSocket.encode/2 (#29) push 11 Dec 2022 06:24PM UTC the-mikedavis github
89.17
d17898b3... main Fix typo in `Mint.WebSocket.new()` function doc (#28) push 09 Dec 2022 03:11PM UTC the-mikedavis github
89.17
e76205ee... main Add Dialyxir and fix all warnings (#27) push 09 Dec 2022 01:49AM UTC the-mikedavis github
89.17
2e345fcf... main Rewrite CI based on Mint push 19 Oct 2022 04:16PM UTC the-mikedavis github
88.95
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