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

supabase / supavisor / e5e7ebfe80dbec4965226225050d4ef5c8216e88-PR-605

21 Feb 2025 02:35PM UTC coverage: 45.973% (-0.03%) from 46.003%
e5e7ebfe80dbec4965226225050d4ef5c8216e88-PR-605

Pull #605

github

hauleth
fix: remaining SSL connections that need to set `verify_none` option
Pull Request #605: fix: remaining SSL connections that need to set `verify_none` option

2 of 9 new or added lines in 3 files covered. (22.22%)

267 existing lines in 26 files now uncovered.

959 of 2086 relevant lines covered (45.97%)

635.02 hits per line

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

33.33
/lib/supavisor/pg_parser.ex
1
defmodule Supavisor.PgParser do
2
  @moduledoc false
3

4
  use Rustler, otp_app: :supavisor, crate: "pgparser"
5

6
  # When your NIF is loaded, it will override this function.
7
  @doc """
8
  Returns a list of all statements in the given sql string.
9

10
  ## Examples
11

12
      iex> Supavisor.PgParser.statement_types("select 1; insert into table1 values ('a', 'b')")
13
      {:ok, ["SelectStmt", "InsertStmt"]}
14

15
      iex> Supavisor.PgParser.statement_types("not a valid sql")
16
      {:error, "Error parsing query"}
17
  """
18
  @spec statement_types(String.t()) :: {:ok, [String.t()]} | {:error, String.t()}
19
  def statement_types(_query), do: :erlang.nif_error(:nif_not_loaded)
×
20

21
  @spec statements(String.t()) :: {:ok, [String.t()]} | {:error, String.t()}
UNCOV
22
  def statements(query) when is_binary(query), do: statement_types(query)
15✔
23
  def statements(_), do: {:error, "Query must be a string"}
×
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

© 2025 Coveralls, Inc