# IntSubject {.starlark-object} ## IntSubject.equals {.starlark-signature} IntSubject.equals([other](#intsubject_equals_other)) Assert that the subject is equal to the given value. Method: IntSubject.equals {#intsubject_equals_parameters} **PARAMETERS** [¶](#intsubject_equals_parameters){.headerlink} :[other[¶](#intsubject_equals_other){.headerlink}]{.span}: []{#intsubject_equals_other} ([`int`]) value the subject must be equal to. {.starlark-object} ## IntSubject.is_greater_than {.starlark-signature} IntSubject.is_greater_than([other](#intsubject_is_greater_than_other)) Asserts that the subject is greater than the given value. Method: IntSubject.is_greater_than {#intsubject_is_greater_than_parameters} **PARAMETERS** [¶](#intsubject_is_greater_than_parameters){.headerlink} :[other[¶](#intsubject_is_greater_than_other){.headerlink}]{.span}: []{#intsubject_is_greater_than_other} ([`int`]) value the subject must be greater than. {.starlark-object} ## IntSubject.new {.starlark-signature} IntSubject.new([value](#intsubject_new_value), [meta](#intsubject_new_meta)) Create an "IntSubject" struct. Method: IntSubject.new {#intsubject_new_parameters} **PARAMETERS** [¶](#intsubject_new_parameters){.headerlink} {.params-box} :[value[¶](#intsubject_new_value){.headerlink}]{.span}: []{#intsubject_new_value} (optional [`int`]) the value to perform asserts against may be None. :[meta[¶](#intsubject_new_meta){.headerlink}]{.span}: []{#intsubject_new_meta} ([`ExpectMeta`]) the meta data about the call chain. {#intsubject_new_returns} RETURNS [¶](#intsubject_new_returns){.headerlink} : [`IntSubject`]. {.starlark-object} ## IntSubject.not_equals {.starlark-signature} IntSubject.not_equals([unexpected](#intsubject_not_equals_unexpected)) Assert that the int is not equal to `unexpected`. Method: IntSubject.not_equals {#intsubject_not_equals_parameters} **PARAMETERS** [¶](#intsubject_not_equals_parameters){.headerlink} :[unexpected[¶](#intsubject_not_equals_unexpected){.headerlink}]{.span}: []{#intsubject_not_equals_unexpected} ([`int`]) the value actual cannot equal. [`Action`]: https://bazel.build/rules/lib/Action [`ActionSubject`]: /api/action_subject [`bool`]: https://bazel.build/rules/lib/bool [`BoolSubject`]: /api/bool_subject [`CollectionSubject`]: /api/collection_subject [`depset`]: https://bazel.build/rules/lib/depset [`DepsetFileSubject`]: /api/depset_file_subject [`dict`]: https://bazel.build/rules/lib/dict [`DictSubject`]: /api/dict_subject [`Expect`]: /api/expect [`ExpectMeta`]: /api/expect_meta [`File`]: https://bazel.build/rules/lib/File [`FileSubject`]: /api/file_subject [`format_str`]: /api/expect_meta.html#expectmeta-format-str [`IntSubject`]: /api/int_subject [`Label`]: https://bazel.build/rules/lib/Label [`LabelSubject`]: /api/label_subject [`list`]: https://bazel.build/rules/lib/list [`Ordered`]: /api/ordered [`RunfilesSubject`]: /api/runfiles_subject [`str`]: https://bazel.build/rules/lib/string [`struct`]: https://bazel.build/rules/lib/builtins/struct [`StrSubject`]: /api/str_subject [`StructSubject`]: /api/struct_subject [`Target`]: https://bazel.build/rules/lib/Target [`TargetSubject`]: /api/target_subject [target-name]: https://bazel.build/concepts/labels#target-names [attr-label]: https://bazel.build/concepts/labels