proc,terminal: remove unused unexported functions (#3299)
This commit is contained in:
parent
c0b0148525
commit
7a05a4326f
@ -2832,15 +2832,6 @@ func TestNextInDeferReturn(t *testing.T) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func getg(goid int64, gs []*proc.G) *proc.G {
|
|
||||||
for _, g := range gs {
|
|
||||||
if g.ID == goid {
|
|
||||||
return g
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestAttachDetach(t *testing.T) {
|
func TestAttachDetach(t *testing.T) {
|
||||||
if testBackend == "lldb" && runtime.GOOS == "linux" {
|
if testBackend == "lldb" && runtime.GOOS == "linux" {
|
||||||
bs, _ := ioutil.ReadFile("/proc/sys/kernel/yama/ptrace_scope")
|
bs, _ := ioutil.ReadFile("/proc/sys/kernel/yama/ptrace_scope")
|
||||||
|
@ -559,19 +559,6 @@ func TestOnPrefixLocals(t *testing.T) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func countOccurrences(s, needle string) int {
|
|
||||||
count := 0
|
|
||||||
for {
|
|
||||||
idx := strings.Index(s, needle)
|
|
||||||
if idx < 0 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
count++
|
|
||||||
s = s[idx+len(needle):]
|
|
||||||
}
|
|
||||||
return count
|
|
||||||
}
|
|
||||||
|
|
||||||
func listIsAt(t *testing.T, term *FakeTerminal, listcmd string, cur, start, end int) {
|
func listIsAt(t *testing.T, term *FakeTerminal, listcmd string, cur, start, end int) {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
outstr := term.MustExec(listcmd)
|
outstr := term.MustExec(listcmd)
|
||||||
|
Loading…
Reference in New Issue
Block a user