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

supabase / supavisor / 6772c8f9cc5e9c93c546b20578630ecd25b92627

03 Feb 2025 11:51AM UTC coverage: 46.03% (-0.3%) from 46.363%
6772c8f9cc5e9c93c546b20578630ecd25b92627

push

github

web-flow
feat: use iodata for metrics export (#586)

This prevents memory bloat form creating all intermediate binaries that
are later dropped. Instead we try to reuse as much of binaries as
possible and then let the VM do the concatenation if needed.

2 of 2 new or added lines in 1 file covered. (100.0%)

268 existing lines in 25 files now uncovered.

945 of 2053 relevant lines covered (46.03%)

665.52 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/lib/supavisor_web/controllers/fallback_controller.ex
1
defmodule SupavisorWeb.FallbackController do
2
  @moduledoc """
3
  Translates controller action results into valid `Plug.Conn` responses.
4

5
  See `Phoenix.Controller.action_fallback/1` for more details.
6
  """
7
  use SupavisorWeb, :controller
8

9
  # This clause handles errors returned by Ecto's insert/update/delete.
10
  def call(conn, {:error, %Ecto.Changeset{} = changeset}) do
11
    conn
12
    |> put_status(:unprocessable_entity)
13
    |> put_view(SupavisorWeb.ChangesetView)
UNCOV
14
    |> render("error.json", changeset: changeset)
2✔
15
  end
16

17
  # This clause is an example of how to handle resources that cannot be found.
18
  def call(conn, {:error, :not_found}) do
19
    conn
20
    |> put_status(:not_found)
21
    |> put_view(SupavisorWeb.ErrorView)
22
    |> render(:"404")
×
23
  end
24
end
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