Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/RainbowMango/GoExpertProgramming
/ Add
Function
Add
source/gotest/unit.go:4–6 ·
view source on GitHub ↗
Add 方法用于演示go test使用
(a int, b int)
Source
from the content-addressed store, hash-verified
2
3
// Add 方法用于演示go test使用
4
func
Add(a int, b int) int {
5
return
a + b
6
}
Callers
4
sub1
Function · 0.92
sub2
Function · 0.92
sub3
Function · 0.92
TestAdd
Function · 0.92
Calls
no outgoing calls
Tested by
4
sub1
Function · 0.74
sub2
Function · 0.74
sub3
Function · 0.74
TestAdd
Function · 0.74