Coverage report:
45%
hide covered
Files
Functions
Classes
coverage.py v7.8.0
, created at 2025-05-19 08:13 -0700
File
function
statements
missing
excluded
branches
partial
coverage
src/otg_mcp/__init__.py
(no function)
0
0
0
0
0
100%
src/otg_mcp/__main__.py
(no function)
9
9
20
2
0
0%
src/otg_mcp/client.py
OtgClient.__post_init__
12
0
0
4
0
100%
src/otg_mcp/client.py
OtgClient._get_api_client
16
2
0
2
1
83%
src/otg_mcp/client.py
OtgClient._get_location_for_target
2
0
0
0
0
100%
src/otg_mcp/client.py
OtgClient._discover_api_schema
5
0
0
0
0
100%
src/otg_mcp/client.py
OtgClient._get_api_version
5
2
0
4
2
56%
src/otg_mcp/client.py
OtgClient._start_traffic
11
11
0
6
0
0%
src/otg_mcp/client.py
OtgClient._start_traffic_control_state
12
12
0
6
0
0%
src/otg_mcp/client.py
OtgClient._stop_traffic
12
12
0
2
0
0%
src/otg_mcp/client.py
OtgClient._stop_traffic_direct
3
3
0
2
0
0%
src/otg_mcp/client.py
OtgClient._stop_traffic_transmit
5
5
0
2
0
0%
src/otg_mcp/client.py
OtgClient._stop_traffic_control_state
14
14
0
8
0
0%
src/otg_mcp/client.py
OtgClient._stop_traffic_flow_transmit
3
3
0
2
0
0%
src/otg_mcp/client.py
OtgClient._verify_traffic_stopped
26
26
0
10
0
0%
src/otg_mcp/client.py
OtgClient._get_metrics
6
6
0
4
0
0%
src/otg_mcp/client.py
OtgClient._start_capture
43
43
0
18
0
0%
src/otg_mcp/client.py
OtgClient._stop_capture
40
40
0
18
0
0%
src/otg_mcp/client.py
OtgClient._get_capture
51
51
0
18
0
0%
src/otg_mcp/client.py
OtgClient.get_traffic_generators_status
2
2
0
0
0
0%
src/otg_mcp/client.py
OtgClient.set_config
22
2
0
2
1
88%
src/otg_mcp/client.py
OtgClient.get_config
14
14
0
0
0
0%
src/otg_mcp/client.py
OtgClient.start_traffic
11
11
0
0
0
0%
src/otg_mcp/client.py
OtgClient.stop_traffic
11
11
0
0
0
0%
src/otg_mcp/client.py
OtgClient.start_capture
18
18
0
4
0
0%
src/otg_mcp/client.py
OtgClient.stop_capture
21
21
0
6
0
0%
src/otg_mcp/client.py
OtgClient.get_capture
13
13
0
2
0
0%
src/otg_mcp/client.py
OtgClient.list_traffic_generators
27
27
0
4
0
0%
src/otg_mcp/client.py
OtgClient.get_available_targets
36
4
0
4
0
90%
src/otg_mcp/client.py
OtgClient._get_target_config
49
12
0
10
4
73%
src/otg_mcp/client.py
OtgClient.get_schemas_for_target
33
9
0
8
2
73%
src/otg_mcp/client.py
OtgClient.list_schemas_for_target
25
6
0
6
1
77%
src/otg_mcp/client.py
OtgClient.get_target_version
12
7
0
2
0
36%
src/otg_mcp/client.py
OtgClient.get_schema_components_for_target
19
19
0
4
0
0%
src/otg_mcp/client.py
OtgClient.health
35
0
0
6
0
100%
src/otg_mcp/client.py
OtgClient.get_metrics
35
35
0
14
0
0%
src/otg_mcp/client.py
(no function)
54
0
0
0
0
100%
src/otg_mcp/client_capture.py
start_capture
26
26
0
2
0
0%
src/otg_mcp/client_capture.py
stop_capture
26
26
0
2
0
0%
src/otg_mcp/client_capture.py
get_capture
30
30
0
6
0
0%
src/otg_mcp/client_capture.py
(no function)
8
0
0
0
0
100%
src/otg_mcp/config.py
LoggingConfig.validate_log_level
7
0
0
2
0
100%
src/otg_mcp/config.py
PortConfig.validate_location
3
1
0
2
1
60%
src/otg_mcp/config.py
PortConfig.validate_name
6
4
0
6
1
25%
src/otg_mcp/config.py
Config.__init__
11
2
0
4
2
73%
src/otg_mcp/config.py
Config.load_config_file
50
50
0
14
0
0%
src/otg_mcp/config.py
Config.setup_logging
27
27
0
2
0
0%
src/otg_mcp/config.py
(no function)
31
0
0
0
0
100%
src/otg_mcp/models/__init__.py
(no function)
2
0
0
0
0
100%
src/otg_mcp/models/models.py
PortInfo.interface_name
1
1
0
0
0
0%
src/otg_mcp/models/models.py
(no function)
47
0
0
0
0
100%
src/otg_mcp/schema_registry.py
SchemaRegistry.__init__
8
0
0
2
0
100%
src/otg_mcp/schema_registry.py
SchemaRegistry._normalize_version
2
0
0
0
0
100%
src/otg_mcp/schema_registry.py
SchemaRegistry.get_available_schemas
23
0
0
10
0
100%
src/otg_mcp/schema_registry.py
SchemaRegistry.schema_exists
3
0
0
0
0
100%
src/otg_mcp/schema_registry.py
SchemaRegistry.list_schemas
8
0
0
0
0
100%
src/otg_mcp/schema_registry.py
SchemaRegistry.get_schema_components
11
0
0
2
0
100%
src/otg_mcp/schema_registry.py
SchemaRegistry._load_schema_from_path
9
0
0
0
0
100%
src/otg_mcp/schema_registry.py
SchemaRegistry._parse_version
6
3
0
0
0
50%
src/otg_mcp/schema_registry.py
SchemaRegistry.get_schema
59
0
0
22
0
100%
src/otg_mcp/schema_registry.py
SchemaRegistry._get_parsed_versions
7
0
0
4
0
100%
src/otg_mcp/schema_registry.py
SchemaRegistry.find_closest_schema_version
50
0
0
22
0
100%
src/otg_mcp/schema_registry.py
SchemaRegistry.get_latest_schema_version
16
0
0
4
0
100%
src/otg_mcp/schema_registry.py
(no function)
18
0
0
0
0
100%
src/otg_mcp/server.py
OtgMcpServer.__init__
22
22
0
2
0
0%
src/otg_mcp/server.py
OtgMcpServer._register_tools
15
15
0
6
0
0%
src/otg_mcp/server.py
OtgMcpServer.tool_set_config
2
2
0
0
0
0%
src/otg_mcp/server.py
OtgMcpServer.tool_get_config
2
2
0
0
0
0%
src/otg_mcp/server.py
OtgMcpServer.tool_get_metrics
2
2
0
0
0
0%
src/otg_mcp/server.py
OtgMcpServer.tool_start_traffic
2
2
0
0
0
0%
src/otg_mcp/server.py
OtgMcpServer.tool_stop_traffic
2
2
0
0
0
0%
src/otg_mcp/server.py
OtgMcpServer.tool_start_capture
2
2
0
0
0
0%
src/otg_mcp/server.py
OtgMcpServer.tool_stop_capture
2
2
0
0
0
0%
src/otg_mcp/server.py
OtgMcpServer.tool_get_capture
2
2
0
0
0
0%
src/otg_mcp/server.py
OtgMcpServer.tool_get_available_targets
2
2
0
0
0
0%
src/otg_mcp/server.py
OtgMcpServer.tool_health
2
2
0
0
0
0%
src/otg_mcp/server.py
OtgMcpServer.tool_get_schemas_for_target
2
2
0
0
0
0%
src/otg_mcp/server.py
OtgMcpServer.tool_list_schemas_for_target
2
2
0
0
0
0%
src/otg_mcp/server.py
OtgMcpServer.run
6
6
0
0
0
0%
src/otg_mcp/server.py
run_server
13
13
0
0
0
0%
src/otg_mcp/server.py
main
1
1
0
0
0
0%
src/otg_mcp/server.py
(no function)
30
0
2
0
0
100%
Total
1318
701
22
294
15
45%
No items found using the specified filter.