Coverage for skema/gromet/execution_engine/types/map.py: 95%
22 statements
« prev ^ index » next coverage.py v7.5.0, created at 2024-04-30 17:15 +0000
« prev ^ index » next coverage.py v7.5.0, created at 2024-04-30 17:15 +0000
1from typing import Dict
3from skema.gromet.execution_engine.types.defined_types import Field
6class new_Map(object): # TODO: Should we have inputs for this?
7 source_language_name = {"Python": "new_Map"}
8 inputs = []
9 outputs = [Field("map_output", "Map")]
10 shorthand = "new_Map"
11 documentation = ""
13 def exec() -> Dict:
14 return {}
17class Map_get(object):
18 source_language_name = {"CAST": "map_get"}
19 inputs = [Field("map_input", "Map"), Field("index", "Hashable")]
20 outputs = [Field("element", "Any")]
21 shorthand = "map_get"
22 documentation = ""
25class Map_set(object):
26 source_language_name = {"CAST": "map_set"}
27 inputs = [
28 Field("map_set", "Map"),
29 Field("index", "Hashable"),
30 Field("element", "Any"),
31 ]
32 outputs = [Field("map_output", "Map")]
33 shorthand = "map_set"
34 documentation = ""