A Godot Engine app to help streamers organize Majority Judgment polls in their streams.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

132 lines
6.9 KiB

  1. extends Reference
  2. # Boolean Assertions
  3. const IsFalse: Script = preload("boolean/is_false.gd")
  4. const IsTrue: Script = preload("boolean/is_true.gd")
  5. # Test Double Assertions
  6. const CalledWithArguments: Script = preload("double/called_with_arguments.gd")
  7. const ScriptWasCalled: Script = preload("double/script_was_called.gd")
  8. const ScriptWasNotCalled: Script = preload("double/script_was_not_called.gd")
  9. # Equality Assertions
  10. const IsEqual: Script = preload("equality/is_equal.gd")
  11. const IsEqualOrGreaterThan: Script = preload("equality/is_equal_or_greater_than.gd")
  12. const IsEqualOrLessThan: Script = preload("equality/is_equal_or_less_than.gd")
  13. const IsGreaterThan: Script = preload("equality/is_greater_than.gd")
  14. const IsLessThan: Script = preload("equality/is_less_than.gd")
  15. const IsNotEqual: Script = preload("equality/is_not_equal.gd")
  16. # File Assertions
  17. const FileDoesNotExist: Script = preload("file/file_does_not_exist.gd")
  18. const FileExists: Script = preload("file/file_exists.gd")
  19. # Is <TYPE> Assertions
  20. const IsAABB: Script = preload("is/is_AABB.gd")
  21. const IsArray: Script = preload("is/is_Array.gd")
  22. const IsBasis: Script = preload("is/is_Basis.gd")
  23. const IsBool: Script = preload("is/is_bool.gd")
  24. const IsBuiltInType: Script = preload("is/is_built_in_type.gd")
  25. const IsClassInstance: Script = preload("is/is_class_instance.gd")
  26. const IsColor: Script = preload("is/is_Color.gd")
  27. const IsDictionary: Script = preload("is/is_Dictionary.gd")
  28. const IsFloat: Script = preload("is/is_float.gd")
  29. const IsInt: Script = preload("is/is_int.gd")
  30. const IsNodePath: Script = preload("is/is_NodePath.gd")
  31. const IsObject: Script = preload("is/is_Object.gd")
  32. const IsPlane: Script = preload("is/is_Plane.gd")
  33. const IsPoolByteArray: Script = preload("is/is_PoolByteArray.gd")
  34. const IsPoolColorArray: Script = preload("is/is_PoolColorArray.gd")
  35. const IsPoolIntArray: Script = preload("is/is_PoolIntArray.gd")
  36. const IsPoolRealArray: Script = preload("is/is_PoolRealArray.gd")
  37. const IsPoolStringArray: Script = preload("is/is_PoolStringArray.gd")
  38. const IsPoolVector2Array: Script = preload("is/is_PoolVector2Array.gd")
  39. const IsPoolVector3Array: Script = preload("is/is_PoolVector3Array.gd")
  40. const IsQuat: Script = preload("is/is_Quat.gd")
  41. const IsRect2: Script = preload("is/is_Rect2.gd")
  42. const IsRID: Script = preload("is/is_RID.gd")
  43. const IsString: Script = preload("is/is_String.gd")
  44. const IsTransform: Script = preload("is/is_Transform.gd")
  45. const IsTransform2D: Script = preload("is/is_Transform2D.gd")
  46. const IsVector2: Script = preload("is/is_Vector2.gd")
  47. const IsVector3: Script = preload("is/is_Vector3.gd")
  48. # Is Not <TYPE> Assertions
  49. const IsNotAABB: Script = preload("is_not/is_not_AABB.gd")
  50. const IsNotArray: Script = preload("is_not/is_not_Array.gd")
  51. const IsNotBasis: Script = preload("is_not/is_not_Basis.gd")
  52. const IsNotBool: Script = preload("is_not/is_not_bool.gd")
  53. const IsNotBuiltInType: Script = preload("is_not/is_not_built_in_type.gd")
  54. const IsNotClassInstance: Script = preload("is_not/is_not_class_instance.gd")
  55. const IsNotColor: Script = preload("is_not/is_not_Color.gd")
  56. const IsNotDictionary: Script = preload("is_not/is_not_Dictionary.gd")
  57. const IsNotFloat: Script = preload("is_not/is_not_float.gd")
  58. const IsNotInt: Script = preload("is_not/is_not_int.gd")
  59. const IsNotNodePath: Script = preload("is_not/is_not_NodePath.gd")
  60. const IsNotObject: Script = preload("is_not/is_not_Object.gd")
  61. const IsNotPlane: Script = preload("is_not/is_not_Plane.gd")
  62. const IsNotPoolByteArray: Script = preload("is_not/is_not_PoolByteArray.gd")
  63. const IsNotPoolColorArray: Script = preload("is_not/is_not_PoolColorArray.gd")
  64. const IsNotPoolIntArray: Script = preload("is_not/is_not_PoolIntArray.gd")
  65. const IsNotPoolRealArray: Script = preload("is_not/is_not_PoolRealArray.gd")
  66. const IsNotPoolStringArray: Script = preload("is_not/is_not_PoolStringArray.gd")
  67. const IsNotPoolVector2Array: Script = preload("is_not/is_not_PoolVector2Array.gd")
  68. const IsNotPoolVector3Array: Script = preload("is_not/is_not_PoolVector3Array.gd")
  69. const IsNotQuat: Script = preload("is_not/is_not_Quat.gd")
  70. const IsNotRect2: Script = preload("is_not/is_not_Rect2.gd")
  71. const IsNotRID: Script = preload("is_not/is_not_RID.gd")
  72. const IsNotString: Script = preload("is_not/is_not_String.gd")
  73. const IsNotTransform: Script = preload("is_not/is_not_Transform.gd")
  74. const IsNotTransform2D: Script = preload("is_not/is_not_Transform2D.gd")
  75. const IsNotVector2: Script = preload("is_not/is_not_Vector2.gd")
  76. const IsNotVector3: Script = preload("is_not/is_not_Vector3.gd")
  77. # Null Assertions
  78. const IsNull: Script = preload("null/is_null.gd")
  79. const IsNotNull: Script = preload("null/is_not_null.gd")
  80. # Object Assertions
  81. # Note: The elements this assertions act on exist throughout every object
  82. # ..in godot so it was necessary. For other class-specific assertions..
  83. # users should use assert.that
  84. const ObjectIsFreed: Script = preload("object/is_freed.gd")
  85. const ObjectIsNotFreed: Script = preload("object/is_not_freed.gd")
  86. const ObjectHasMeta: Script = preload("object/has_meta.gd")
  87. const ObjectDoesNotHaveMeta: Script = preload("object/does_not_have_meta.gd")
  88. const ObjectHasMethod: Script = preload("object/has_method.gd")
  89. const ObjectDoesNotHaveMethod: Script = preload("object/does_not_have_method.gd")
  90. const ObjectHasUserSignal: Script = preload("object/has_user_signal.gd")
  91. const ObjectDoesNotHaveUserSignal: Script = preload("object/does_not_have_user_signal.gd")
  92. const ObjectIsQueuedForDeletion: Script = preload("object/is_queued_for_deletion.gd")
  93. const ObjectIsNotQueuedForDeletion: Script = preload("object/is_not_queued_for_deletion.gd")
  94. const ObjectIsBlockingSignals: Script = preload("object/is_blocking_signals.gd")
  95. const ObjectIsNotBlockingSignals: Script = preload("object/is_not_blocking_signals.gd")
  96. const ObjectIsConnected: Script = preload("object/is_connected.gd")
  97. const ObjectIsNotConnected: Script = preload("object/is_not_connected.gd")
  98. # Property Assertions
  99. const Has: Script = preload("property/has.gd")
  100. const DoesNotHave: Script = preload("property/does_not_have.gd")
  101. # Range Assertions
  102. const IsInRange: Script = preload("range/is_in_range.gd")
  103. const IsNotInRange: Script = preload("range/is_not_in_range.gd")
  104. # Signal Assertions
  105. const WasEmitted: Script = preload("signal/signal_was_emitted.gd")
  106. const WasEmittedXTimes: Script = preload("signal/signal_was_emitted_x_times.gd")
  107. const WasEmittedWithArguments: Script = preload("signal/signal_was_emitted_with_arguments.gd")
  108. const WasNotEmitted: Script = preload("signal/signal_was_not_emitted.gd")
  109. # String Assertions
  110. const BeginsWith: Script = preload("string/string_begins_with.gd")
  111. const Contains: Script = preload("string/string_contains.gd")
  112. const DoesNotBeginWith: Script = preload("string/string_does_not_begin_with.gd")
  113. const DoesNotContain: Script = preload("string/string_does_not_contain.gd")
  114. const DoesNotEndWith: Script = preload("string/string_does_not_end_with.gd")
  115. const EndsWith: Script = preload("string/string_ends_with.gd")
  116. # Misc Utility Assertions
  117. const That: Script = preload("misc/that.gd")
  118. const Fail: Script = preload("misc/fail.gd")