Method: pylint.pyreverse.plantuml_printer.PlantUmlPrinter._open_graph
Calls: 15, Exceptions: 2, Paths: 4Back
Path 1: 10 calls (0.67)
1def _open_graph(self) -> None:
2 """Emit the header lines."""
3 self.emit("@startuml " + self.title)
4 if not self.use_automatic_namespace:
5 self.emit("set namespaceSeparator none")
6 if self.layout:
7 if self.layout is Layout.LEFT_TO_RIGHT:
8 self.emit("left to right direction")
9 elif self.layout is Layout.TOP_TO_BOTTOM:
10 self.emit("top to bottom direction")
11 else:
12 raise ValueError(
13 f"Unsupported layout {self.layout}. PlantUmlPrinter only "
14 "supports left to right and top to bottom layout."
15 )
Path 2: 2 calls (0.13)
1def _open_graph(self) -> None:
2 """Emit the header lines."""
3 self.emit("@startuml " + self.title)
4 if not self.use_automatic_namespace:
5 self.emit("set namespaceSeparator none")
6 if self.layout:
7 if self.layout is Layout.LEFT_TO_RIGHT:
8 self.emit("left to right direction")
9 elif self.layout is Layout.TOP_TO_BOTTOM:
10 self.emit("top to bottom direction")
11 else:
12 raise ValueError(
13 f"Unsupported layout {self.layout}. PlantUmlPrinter only "
14 "supports left to right and top to bottom layout."
15 )
Path 3: 2 calls (0.13)
ValueError (2)
1def _open_graph(self) -> None:
2 """Emit the header lines."""
3 self.emit("@startuml " + self.title)
4 if not self.use_automatic_namespace:
5 self.emit("set namespaceSeparator none")
6 if self.layout:
7 if self.layout is Layout.LEFT_TO_RIGHT:
8 self.emit("left to right direction")
9 elif self.layout is Layout.TOP_TO_BOTTOM:
10 self.emit("top to bottom direction")
11 else:
12 raise ValueError(
13 f"Unsupported layout {self.layout}. PlantUmlPrinter only "
14 "supports left to right and top to bottom layout."
15 )
Path 4: 1 calls (0.07)
1def _open_graph(self) -> None:
2 """Emit the header lines."""
3 self.emit("@startuml " + self.title)
4 if not self.use_automatic_namespace:
5 self.emit("set namespaceSeparator none")
6 if self.layout:
7 if self.layout is Layout.LEFT_TO_RIGHT:
8 self.emit("left to right direction")
9 elif self.layout is Layout.TOP_TO_BOTTOM:
10 self.emit("top to bottom direction")
11 else:
12 raise ValueError(
13 f"Unsupported layout {self.layout}. PlantUmlPrinter only "
14 "supports left to right and top to bottom layout."
15 )