MCPcopy
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使用
4func Add(a int, b int) int {
5 return a + b
6}

Callers 4

sub1Function · 0.92
sub2Function · 0.92
sub3Function · 0.92
TestAddFunction · 0.92

Calls

no outgoing calls

Tested by 4

sub1Function · 0.74
sub2Function · 0.74
sub3Function · 0.74
TestAddFunction · 0.74