Benign go Download

gopkg.in/check.v1 v1.0.0-20151209162144-1b52f533ff42

Contains an unbounded block loopGo loop omits its continuation condition
SHA-256ee69c18df819291ad420363f30b73da4949157aac11de34ef61bf4b4902ded14
MaleculeH₂(Db₂F)

Evidence

imports os helpers_test.go · lines 1–26
1// These tests verify the inner workings of the helper methods associated
2// with check.T.
3
4package check_test
5
6import (
7 "gopkg.in/check.v1"
8 "os"
9 "reflect"
10 "runtime"
11 "sync"
12)
13
⋯7 lines
21
22// -----------------------------------------------------------------------
23// Fake checker and bug info to verify the behavior of Assert() and Check().
24
25type MyChecker struct {
26 info *chec …
Go goroutine launch call helpers_test.go · lines 433–449
433:59… fer.
434// Use go test -race to detect the race in this test.
435func (s *HelpersS) TestConcurrentLogging(c *check.C) {
436 defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(runtime.NumCPU()))
437 var start, stop sync.WaitGroup
438 start.Add(1)
439 for i, n := 0, runtime.NumCPU()*2; i < n; i++ {
440 stop.Add(1)
441 go func(i int) {
442 start.Wait()
443 for j := 0; j < 30; j++ {
⋯6 lines
Parses Go source file printer.go · lines 29–39
⋯4 lines
33 return "", err
34 }
35 fnode, err := parser.ParseFile(fset, filename, file, parser.ParseComments)
36 if err != nil {
37 return "", err
38 }
39 config := &printer.Config{Mode: printer.UseSp …
imports reflect checkers.go · lines 1–14
1package check
2
3import (
4 "fmt"
5 "reflect"
6 "regexp"
7)
8
9// -----------------------------------------------------------------------
10// CommentInterface and Commentf helper, to attach extra information to checks.
11
12type comment struct {
13 format string
14 …
Repeated Go reflection API usage checkers.go · lines 117–123
117:48… {
118 if obtained == nil {
119 result = true
120 } else {
121 switch v := reflect.ValueOf(obtained); v.Kind() {
122 case reflect.Chan, reflect.Func, reflect.Interface, reflect.Map, reflect.Ptr, reflect.Slice:
123 …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.