cloudwego / hertz

Go HTTP framework with high-performance and strong-extensibility for building micro-services.
https://www.cloudwego.io
Apache License 2.0
5.28k stars 515 forks source link

fix assert.NotNil not working #1178

Closed ElvisWai closed 1 month ago

ElvisWai commented 2 months ago

Describe the bug

使用 assert 的 NotNil 断言时不生效

Replay 测试代码:

import  "github.com/cloudwego/hertz/pkg/common/test/assert"
func TestAssertNotNil(t *testing.T) {
    var test interface{}
    assert.NotNil(t, test)
    fmt.Println("test 值不为空")
}

image

Hertz version:

version: 0.9.2

github-actions[bot] commented 2 months ago

This issue has been marked as invalid question, please give more information by following the issue template. The issue will be closed in 1 days if no further activity occurs.