Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ab621f5

Browse files
20220422
1 parent fa96f34 commit ab621f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎go-32/function_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import (
77

88
/*
99
内置单元测试框架
10+
go语言创建单元测试文件,就是文件命名加个_test,测试的入口方法Test开头就行了,比java简洁多了
11+
1012
- Fail,Error:该测试失败,该测试继续,其他测试继续执行
1113
- FailNow,Fatal:该测试失败,该测试中止,其他测试继续执行
1214

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /