       "** (" <> error ->
         [mod, message] = :binary.split(error, ")")
         {:error, Module.concat([mod]), String.trim_leading(message)}
+
       _ ->
         if inspectable?(string) do
           {:inspect, inspect(string)}

    all_docs = Code.get_docs(module, :all)

    unless all_docs do
      raise Error, module: module, message:
        "could not retrieve the documentation for module #{inspect module}. " <>
        "The module was not compiled with documentation or its BEAM file cannot be accessed"
    end

    moduledocs = extract_from_moduledoc(all_docs[:moduledoc], module)

    docs = for doc <- all_docs[:docs],
               doc <- extract_from_doc(doc, module),
               do: doc

    moduledocs ++ docs
  end

  @fences ["```", "~~~"]

  defp extract_tests(lines, expr_acc, expected_acc, acc, new_test, module)

  defp extract_tests([], "", "", [], _, _) do
    []
  end
