Documentation
¶
Overview ¶
Suite of testing-oriented commands that will trigger errors or failures if they aren't satistifed.
The Assert module is aimed at making it easier to write scripts that perform test validation, as is frequently done during automated acceptance testing of web applications.
Index ¶
- type Commands
- func (self *Commands) Empty(value interface{}) error
- func (self *Commands) Exists(value interface{}) error
- func (self *Commands) False(value interface{}) error
- func (self *Commands) IsArray(value interface{}) error
- func (self *Commands) IsBoolean(value interface{}) error
- func (self *Commands) IsDuration(value interface{}) error
- func (self *Commands) IsNumeric(value interface{}) error
- func (self *Commands) IsObject(value interface{}) error
- func (self *Commands) IsScalar(value interface{}) error
- func (self *Commands) IsString(value interface{}) error
- func (self *Commands) IsTime(value interface{}) error
- func (self *Commands) NotNull(value interface{}) error
- func (self *Commands) Null(value interface{}) error
- func (self *Commands) True(value interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commands ¶
type Commands struct { friendscript.Module // contains filtered or unexported fields }
func (*Commands) Exists ¶ added in v0.9.43
Return an error if the given value is null or zero-length.
func (*Commands) IsBoolean ¶ added in v0.9.43
Return an error if the given value is not a boolean value.
func (*Commands) IsDuration ¶ added in v0.9.43
Return an error if the given value is not parsable as a duration.
func (*Commands) IsNumeric ¶ added in v0.9.43
Return an error if the given value is not a numeric value.
func (*Commands) IsScalar ¶ added in v0.9.43
Return an error if the given value is not a scalar value.
func (*Commands) IsTime ¶ added in v0.9.43
Return an error if the given value is not parsable as a time.