godot-xterm/addons/gut/compare_result.gd

71 lines
1.1 KiB
GDScript
Raw Normal View History

var _are_equal = false
var are_equal = false :
2022-11-09 21:57:46 +01:00
get:
return get_are_equal()
set(val):
set_are_equal(val)
var _summary = null
2022-11-09 21:57:46 +01:00
var summary = null :
get:
return get_summary()
set(val):
set_summary(val)
var _max_differences = 30
2022-11-09 21:57:46 +01:00
var max_differences = 30 :
get:
return get_max_differences()
set(val):
set_max_differences(val)
var _differences = {}
var differences :
get:
return get_differences()
set(val):
set_differences(val)
func _block_set(which, val):
push_error(str('cannot set ', which, ', value [', val, '] ignored.'))
func _to_string():
return str(get_summary()) # could be null, gotta str it.
func get_are_equal():
return _are_equal
func set_are_equal(r_eq):
_are_equal = r_eq
func get_summary():
return _summary
func set_summary(smry):
_summary = smry
func get_total_count():
pass
func get_different_count():
pass
func get_short_summary():
return summary
func get_max_differences():
return _max_differences
func set_max_differences(max_diff):
_max_differences = max_diff
func get_differences():
return _differences
func set_differences(diffs):
_block_set('differences', diffs)
func get_brackets():
return null