diff --git a/lib/zig.doc/generator.ex b/lib/zig.doc/generator.ex index e3482f6..ffafc39 100644 --- a/lib/zig.doc/generator.ex +++ b/lib/zig.doc/generator.ex @@ -37,7 +37,7 @@ defmodule Zig.Doc.Generator do # options must include 'file' key with {:ok, file_path} <- Keyword.fetch(options, :file), {{:ok, file}, :read, _} <- {File.read(file_path), :read, file_path} do - sema = sema_module.run_sema(file_path) + sema = sema_module.run_sema_doc(file_path) parsed_document = Zig.Parser.parse(file) node = %ExDoc.ModuleNode{ diff --git a/test/_support/sema.ex b/test/_support/sema.ex index 4ba9c81..c1d0510 100644 --- a/test/_support/sema.ex +++ b/test/_support/sema.ex @@ -1,6 +1,6 @@ defmodule Zig.SemaAPI do @type json :: nil | boolean | number | String.t() | [json] | %{optional(String.t()) => json} - @callback run_sema(Path.t()) :: {:ok, json} | {:error, String.t()} + @callback run_sema_doc(Path.t()) :: {:ok, json} | {:error, String.t()} end Mox.defmock(Zig.SemaMock, for: Zig.SemaAPI) diff --git a/test/_support/zig_doc_case.ex b/test/_support/zig_doc_case.ex index 7b2e509..734dee9 100644 --- a/test/_support/zig_doc_case.ex +++ b/test/_support/zig_doc_case.ex @@ -26,7 +26,7 @@ defmodule Zig.Doc.Case do end def expect_sema(sema) do - Mox.expect(Zig.SemaMock, :run_sema, fn _ -> sema end) + Mox.expect(Zig.SemaMock, :run_sema_doc, fn _ -> sema end) end defmacro assert_code(string, data) do