From 0181de275afe4cd5294109250da883602f7a97c4 Mon Sep 17 00:00:00 2001 From: Lukasz Samson Date: Thu, 18 Jul 2024 11:22:01 +0200 Subject: [PATCH] remove dbg --- test/elixir_sense/core/compiler_test.exs | 12 ++++++------ test/elixir_sense/core/metadata_builder_test.exs | 3 +-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/test/elixir_sense/core/compiler_test.exs b/test/elixir_sense/core/compiler_test.exs index f78b4b57..c9666641 100644 --- a/test/elixir_sense/core/compiler_test.exs +++ b/test/elixir_sense/core/compiler_test.exs @@ -86,9 +86,9 @@ if true or Version.match?(System.version(), ">= 1.17.0-dev") do quote do ast = to_quoted!(unquote(code), unquote(ast)) {elixir_expanded, elixir_state, elixir_env} = elixir_expand(ast) - dbg(elixir_expanded) + # dbg(elixir_expanded) {expanded, state, env} = expand(ast) - dbg(expanded) + # dbg(expanded) assert clean_capture_arg(expanded) == clean_capture_arg_elixir(elixir_expanded) assert env == elixir_env @@ -100,11 +100,11 @@ if true or Version.match?(System.version(), ">= 1.17.0-dev") do quote do ast = to_quoted!(unquote(code), unquote(ast)) {elixir_expanded, elixir_state, elixir_env} = elixir_expand(ast) - dbg(elixir_expanded) - dbg(elixir_ex_to_map(elixir_state)) + # dbg(elixir_expanded) + # dbg(elixir_ex_to_map(elixir_state)) {expanded, state, env} = expand(ast) - dbg(expanded) - dbg(state_to_map(state)) + # dbg(expanded) + # dbg(state_to_map(state)) assert env == elixir_env assert state_to_map(state) == elixir_ex_to_map(elixir_state) diff --git a/test/elixir_sense/core/metadata_builder_test.exs b/test/elixir_sense/core/metadata_builder_test.exs index b9ffefbf..6339bbb6 100644 --- a/test/elixir_sense/core/metadata_builder_test.exs +++ b/test/elixir_sense/core/metadata_builder_test.exs @@ -2524,7 +2524,7 @@ defmodule ElixirSense.Core.MetadataBuilderTest do # type: {:map, [b: {:integer, 2}], nil} # } = Enum.find(vars, &(&1.name == :a1)) - vars = state |> get_line_vars(8) |> dbg + vars = state |> get_line_vars(8) assert %VarInfo{ name: :a2, @@ -8166,7 +8166,6 @@ defmodule ElixirSense.Core.MetadataBuilderTest do [] env -> - dbg(state) state.vars_info_per_scope_id[env.scope_id] end |> Enum.sort()