Skip to content

fix assert.NotNil not working #1178

@ElvisWai

Description

@ElvisWai

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions