Skip to content

Commit 0615d6d

Browse files
NSHkrNSHkr
authored andcommitted
tests
1 parent 3da233d commit 0615d6d

File tree

15 files changed

+35
-20
lines changed

15 files changed

+35
-20
lines changed

test/contract/foundation_api_test.exs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ defmodule ElixirScope.Contract.FoundationAPITest do
3535

3636
test "Config.get/0 returns Config struct" do
3737
config = Config.get()
38-
assert %Config{} = config
38+
assert %{} = config
3939
end
4040

4141
test "Config.get/1 with path returns value or nil" do
@@ -57,10 +57,10 @@ defmodule ElixirScope.Contract.FoundationAPITest do
5757
end
5858

5959
test "Config.validate/1 returns ok or error tuple" do
60-
valid_config = %Config{}
60+
valid_config = %{}
6161
assert {:ok, ^valid_config} = Config.validate(valid_config)
6262

63-
invalid_config = %Config{ai: %{provider: :invalid}}
63+
invalid_config = %{ai: %{provider: :invalid}}
6464
assert {:error, _reason} = Config.validate(invalid_config)
6565
end
6666
end
@@ -69,7 +69,7 @@ defmodule ElixirScope.Contract.FoundationAPITest do
6969
test "Events.new_event/3 creates valid event" do
7070
event = Events.new_event(:test_type, %{data: "test"}, [])
7171

72-
assert %Events{} = event
72+
assert %{} = event
7373
assert event.event_type == :test_type
7474
assert is_integer(event.event_id)
7575
assert is_integer(event.timestamp)

test/end_to_end/distributed_system_analysis/multi_node_analysis_test.exs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ defmodule ElixirScope.Test.EndToEnd.DistributedSystemAnalysisTest do
22
use ExUnit.Case, async: false
33

44
@moduletag :end_to_end
5-
@tag :end_to_end @tag :distributed @tag :slow
5+
@tag :end_to_end
6+
@tag :distributed
7+
@tag :slow
68

79
alias ElixirScope.EndToEnd.DistributedSystemAnalysis
810
alias ElixirScope.Test.Support.Helpers

test/end_to_end/otp_supervision_analysis/supervisor_tree_analysis_test.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ defmodule ElixirScope.Test.EndToEnd.OTPSupervisionAnalysisTest do
22
use ExUnit.Case, async: false
33

44
@moduletag :end_to_end
5-
@tag :end_to_end @tag :otp
5+
@tag :end_to_end
6+
@tag :otp
67

78
alias ElixirScope.EndToEnd.OTPSupervisionAnalysis
89
alias ElixirScope.Test.Support.Helpers

test/end_to_end/time_travel_debugging/time_travel_workflow_test.exs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ defmodule ElixirScope.Test.EndToEnd.TimeTravelDebuggingTest do
22
use ExUnit.Case, async: false
33

44
@moduletag :end_to_end
5-
@tag :end_to_end @tag :time_travel @tag :debug
5+
@tag :end_to_end
6+
@tag :time_travel
7+
@tag :debug
68

79
alias ElixirScope.EndToEnd.TimeTravelDebugging
810
alias ElixirScope.Test.Support.Helpers

test/integration/analysis_intelligence/ai_enhanced_analysis_test.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ defmodule ElixirScope.Test.Integration.AnalysisIntelligenceTest do
22
use ExUnit.Case, async: false
33

44
@moduletag :integration
5-
@tag :integration @tag :ai
5+
@tag :integration
6+
@tag :ai
67

78
alias ElixirScope.Integration.AnalysisIntelligence
89
alias ElixirScope.Test.Support.Helpers

test/integration/capture_debugger/runtime_debug_integration_test.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ defmodule ElixirScope.Test.Integration.CaptureDebuggerTest do
22
use ExUnit.Case, async: false
33

44
@moduletag :integration
5-
@tag :integration @tag :capture
5+
@tag :integration
6+
@tag :capture
67

78
alias ElixirScope.Integration.CaptureDebugger
89
alias ElixirScope.Test.Support.Helpers

test/integration/end_to_end_workflows/complete_analysis_workflow_test.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ defmodule ElixirScope.Test.Integration.EndToEndWorkflowsTest do
22
use ExUnit.Case, async: false
33

44
@moduletag :integration
5-
@tag :integration @tag :slow
5+
@tag :integration
6+
@tag :slow
67

78
alias ElixirScope.Integration.EndToEndWorkflows
89
alias ElixirScope.Test.Support.Helpers

test/performance/benchmarks/cpg_construction/cpg_build_benchmarks_test.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ defmodule ElixirScope.Test.Performance.CPGConstructionBenchmarkTest do
22
use ExUnit.Case, async: true
33

44
@moduletag :performance
5-
@tag :benchmark @tag :slow
5+
@tag :benchmark
6+
@tag :slow
67

78
alias ElixirScope.Performance.CPGConstructionBenchmark
89
alias ElixirScope.Test.Support.Helpers

test/performance/benchmarks/graph_algorithms/centrality_benchmarks_test.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ defmodule ElixirScope.Test.Performance.GraphAlgorithmsBenchmarkTest do
22
use ExUnit.Case, async: true
33

44
@moduletag :performance
5-
@tag :benchmark @tag :slow
5+
@tag :benchmark
6+
@tag :slow
67

78
alias ElixirScope.Performance.GraphAlgorithmsBenchmark
89
alias ElixirScope.Test.Support.Helpers

test/performance/memory_usage/memory_profiling_test.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ defmodule ElixirScope.Test.Performance.MemoryUsageTest do
22
use ExUnit.Case, async: true
33

44
@moduletag :performance
5-
@tag :memory @tag :slow
5+
@tag :memory
6+
@tag :slow
67

78
alias ElixirScope.Performance.MemoryUsage
89
alias ElixirScope.Test.Support.Helpers

0 commit comments

Comments
 (0)