MCPcopy
hub / github.com/gogf/gf / Assert

Method Assert

test/gtest/gtest_t.go:19–21  ·  view source on GitHub ↗

Assert checks `value` and `expect` EQUAL.

(value, expect any)

Source from the content-addressed store, hash-verified

17
18// Assert checks `value` and `expect` EQUAL.
19func (t *T) Assert(value, expect any) {
20 Assert(value, expect)
21}
22
23// AssertEQ checks `value` and `expect` EQUAL, including their TYPES.
24func (t *T) AssertEQ(value, expect any) {

Callers 15

Test_String_JSONFunction · 0.80
Test_Interface_JSONFunction · 0.80
Test_Float64_JSONFunction · 0.80
Test_Float32_JSONFunction · 0.80
Test_Int_JSONFunction · 0.80
Test_Int_UnmarshalValueFunction · 0.80
Test_Uint_JSONFunction · 0.80

Calls 1

AssertFunction · 0.85

Tested by 15

Test_String_JSONFunction · 0.64
Test_Interface_JSONFunction · 0.64
Test_Float64_JSONFunction · 0.64
Test_Float32_JSONFunction · 0.64
Test_Int_JSONFunction · 0.64
Test_Int_UnmarshalValueFunction · 0.64
Test_Uint_JSONFunction · 0.64