github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/tools/oracle/testdata/src/calls/main.golden (about) 1 -------- @pointsto pointsto-A-x -------- 2 this *int may point to these objects: 3 a 4 b 5 6 -------- @callstack callstack-A -------- 7 Found a call path from root to main.A 8 main.A 9 dynamic function call from main.apply 10 concurrent static function call from main.main 11 12 -------- @pointsto pointsto-B-x -------- 13 this *int may point to these objects: 14 a 15 b 16 17 -------- @callers callers-B -------- 18 main.B is called from these 1 sites: 19 dynamic function call from main.apply 20 21 -------- @callees callees-apply -------- 22 this dynamic function call dispatches to: 23 main.A 24 main.B 25 26 -------- @callers callers-apply -------- 27 main.apply is called from these 2 sites: 28 concurrent static function call from main.main 29 deferred static function call from main.main 30 31 -------- @callers callers-store -------- 32 main.store is called from these 2 sites: 33 static function call from main.main 34 static function call from main.main 35 36 -------- @pointsto pointsto-result-f -------- 37 this func() *int may point to these objects: 38 main.main$1 39 40 -------- @callees callees-main.call-f -------- 41 this dynamic function call dispatches to: 42 main.main$1 43 44 -------- @callers callers-main.call -------- 45 main.call is called from these 2 sites: 46 static function call from main.main 47 static function call from main.main 48 49 -------- @callees callees-main-apply1 -------- 50 this static function call dispatches to: 51 main.apply 52 53 -------- @pointsto pointsto-pc -------- 54 this *int may point to these objects: 55 c 56 57 -------- @pointsto pointsto-pd -------- 58 this *int may point to these objects: 59 d 60 61 -------- @callees callees-err-no-call -------- 62 63 Error: there is no function call here 64 -------- @callees callees-err-builtin -------- 65 66 Error: this is a call to the built-in 'print' operator 67 -------- @callees callees-err-conversion -------- 68 69 Error: this is a type conversion, not a function call 70 -------- @callees callees-err-bad-selection -------- 71 72 Error: ambiguous selection within function call (or conversion) 73 -------- @callees callees-err-deadcode1 -------- 74 this static function call dispatches to: 75 main.main 76 77 -------- @callees callees-err-nil-func -------- 78 dynamic function call on nil value 79 80 -------- @callees callees-err-nil-interface -------- 81 dynamic method call on nil value 82 83 -------- @callees callees-not-a-wrapper -------- 84 this dynamic method call dispatches to: 85 (main.myint).f 86 87 -------- @callees callees-static-call -------- 88 this static function call dispatches to: 89 main.foo 90 91 -------- @callees callees-qualified-call -------- 92 this static function call dispatches to: 93 fmt.Println 94 95 -------- @callees callees-static-method-call -------- 96 this static function call dispatches to: 97 (main.method).f 98 99 -------- @callers callers-not-a-wrapper -------- 100 (main.myint).f is called from these 1 sites: 101 dynamic method call from main.main 102 103 -------- @callees callees-err-deadcode2 -------- 104 this static function call dispatches to: 105 main.main 106 107 -------- @callstack callstack-err-deadcode -------- 108 main.deadcode is unreachable in this analysis scope 109 110 -------- @callees callees-err-deadcode3 -------- 111 112 Error: this call site is unreachable in this analysis 113 -------- @callers callers-global -------- 114 main.init is called from these 1 sites: 115 the root of the call graph 116 117 -------- @callstack callstack-init -------- 118 Found a call path from root to main.init#1 119 main.init#1 120 static function call from main.init 121