MCPcopy
hub / github.com/QData/TextAttack / str_lines

Method str_lines

textattack/attack_results/attack_result.py:65–70  ·  view source on GitHub ↗

A list of the lines to be printed for this result's string representation.

(self, color_method=None)

Source from the content-addressed store, hash-verified

63 )
64
65 def str_lines(self, color_method=None):
66 """A list of the lines to be printed for this result's string
67 representation."""
68 lines = [self.goal_function_result_str(color_method=color_method)]
69 lines.extend(self.diff_color(color_method))
70 return lines
71
72 def __str__(self, color_method=None):
73 return "\n\n".join(self.str_lines(color_method=color_method))

Callers 1

__str__Method · 0.95

Calls 2

diff_colorMethod · 0.95

Tested by

no test coverage detected