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

CaptainFact / captain-fact-api / 39e2eaabe39ec3ddf9d0284f58ea08779d8e55be

06 Dec 2025 05:07PM UTC coverage: 51.976% (-1.5%) from 53.525%
39e2eaabe39ec3ddf9d0284f58ea08779d8e55be

push

github

web-flow
deps: Update Erlang/Elixir (#501)

14 of 36 new or added lines in 13 files covered. (38.89%)

143 existing lines in 55 files now uncovered.

1144 of 2201 relevant lines covered (51.98%)

14.39 hits per line

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

50.0
/apps/db/lib/db_utils/string.ex
1
defmodule DB.Utils.String do
2
  @moduledoc """
3
  String utils not included in base library
4
  """
5

6
  @doc """
7
  Convert a string like "     aaa     bbb ccc  " into "aaa bbb ccc"
8

9
  ## Examples
10

11
      iex> DB.Utils.String.trim_all_whitespaces "     aaa     bbb ccc  "
12
      "aaa bbb ccc"
13
      iex> DB.Utils.String.trim_all_whitespaces ""
14
      ""
15
  """
UNCOV
16
  def trim_all_whitespaces(nil),
×
17
    do: nil
18

19
  def trim_all_whitespaces(str) do
20
    str
21
    |> String.trim()
22
    |> String.replace(~r/\s+/, " ")
34✔
23
  end
24

UNCOV
25
  def upcase(nil), do: nil
×
26

27
  def upcase(str), do: String.upcase(str)
8✔
28
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