File tree Expand file tree Collapse file tree 4 files changed +11
-2
lines changed
Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 99# # Autogenerated code during the documentation process
1010generated * .md
1111
12+ * .raw
13+
1214# Test data
1315data
1416
Original file line number Diff line number Diff line change @@ -541,6 +541,7 @@ export get_subsystem_components
541541export remove_component_from_subsystem!
542542export remove_component_from_subsystems!
543543export has_component
544+ export has_components
544545export get_assigned_subsystems
545546export has_subsystems
546547export is_assigned_to_subsystem
Original file line number Diff line number Diff line change @@ -1254,8 +1254,8 @@ end
12541254"""
12551255Check to see if the component of type T exists.
12561256"""
1257- function has_component (sys:: System , T:: Type{<:Component} )
1258- return IS. has_component (sys. data, T)
1257+ function has_components (sys:: System , T:: Type{<:Component} )
1258+ return IS. has_components (sys. data. components , T)
12591259end
12601260
12611261"""
Original file line number Diff line number Diff line change 638638 @test_throws ArgumentError add_service! (device2, service1, sys2)
639639end
640640
641+ @testset " Test has_components" begin
642+ sys1 = PSB. build_system (PSITestSystems, " test_RTS_GMLC_sys" )
643+ @test has_components (sys1, ThermalStandard)
644+ @test ! has_components (sys1, TransmissionInterface)
645+ end
646+
641647@testset " Test set_bus_number!" begin
642648 sys = PSB. build_system (PSITestSystems, " test_RTS_GMLC_sys" )
643649 buses = collect (get_components (ACBus, sys))
You can’t perform that action at this time.
0 commit comments