D3: close out partial test coverage gaps with new tests + execute_macro degrade-to-empty fix

This commit is contained in:
hugo committed 2026-05-30 19:33:52 +02:00
1 parent ee4d0dd33f
commit b65c2be29b
8 files changed
+173 -15

No files matched your search

+2 -2
View File
@@ -106,7 +106,7 @@ defmodule BDS.Scripting.ApiTest do
bad_source = "function render() error('boom') end"
assert {:error, _reason} = BDS.Scripting.execute_macro(project.id, bad_source, [])
assert {:ok, ""} = BDS.Scripting.execute_macro(project.id, bad_source, [])
end
test "macro execution is bounded by its timeout budget (MacroTimeout)", %{project: project} do
@@ -125,7 +125,7 @@ defmodule BDS.Scripting.ApiTest do
)
end)
assert {:error, :timeout} = result
assert {:ok, ""} = result
elapsed_ms = div(elapsed_us, 1000)