Documentation
¶
Overview ¶
Check if we can distinguish accesses to different fields
Testing method calls package main
import (
"fmt"
)
type someData struct { someInt int }
var xtoy = make(chan int)
func (someNum someData) justRecv() int { k := <-xtoy close(xtoy) return k }
func (someNum someData) justSend() { xtoy <- someNum.someInt }
func main() { x2 := someData{someInt: 5} var j int go func() { x2.someInt = 2 * x2.someInt x2.justSend() }() go func() { j = x2.justRecv() fmt.Println(j) }() }
Source Files
¶
- atomics.go
- cfg.go
- cg.go
- chan_receive.go
- context1.go
- defer.go
- defer_mut_ex.go
- fields.go
- fzf_wg.go
- global_ownership.go
- grpc_lock.go
- grpc_pta.go
- grpc_simple.go
- if.go
- if_loop.go
- if_mut_ex.go
- ifunlockProtected.go
- ifunlockUnprotected.go
- k8s_issue80269.go
- local.go
- local_loop.go
- local_thread_safe.go
- lock.go
- lock_diff_thread.go
- lock_grpc_sync.go
- lock_mixed.go
- lock_multiple_deferred.go
- lock_twice.go
- lockset.go
- loop_again.go
- loop_false.go
- loop_three_false.go
- loop_true.go
- loop_two_false.go
- map_race.go
- map_race_grpc.go
- multi_sends.go
- multiple_waitgroups.go
- mutual_exclusion1.go
- mutual_exclusion2.go
- ownership1.go
- pta_race.go
- race_cfg.go
- race_example1.go
- race_example2.go
- race_example3.go
- runc_simple.go
- rwmutex_lock.go
- select.go
- select_all_ready.go
- select_multiple.go
- select_nonblock.go
- select_nonblock_fp.go
- select_rpc.go
- select_sends.go
- select_timeout.go
- send_after_select.go
- single_case_select.go
- stack.go
- stack_anon.go
- test1.go
- test2.go
- test_neo.go
- waitDone.go
- waitgroup.go
- wrong_waitgroup.go
Directories
¶
Path | Synopsis |
---|---|
GoBench
|
|
Cockroach/27659
TestCockroach27659
|
TestCockroach27659 |
Etcd/4876
TestEtcd4876 - PASS
|
TestEtcd4876 - PASS |
Grpc/1748
TestGrpc1748 - PASS
|
TestGrpc1748 - PASS |
Grpc/1862
TestGrpc1862
|
TestGrpc1862 |
Grpc/3090
TestGrpc3090
|
TestGrpc3090 |
Istio/16742
TestIstio16742
|
TestIstio16742 |
Istio/8144
TestIstio8144
|
TestIstio8144 |
Istio/8214
TestIstio8214
|
TestIstio8214 |
Istio/8967
TestIstio8967 - PASS
|
TestIstio8967 - PASS |
Kubernetes/79631
TestKubernetes79631
|
TestKubernetes79631 |
Kubernetes/80284
TestKubernetes80284
|
TestKubernetes80284 |
Kubernetes/81091
TestKubernetes81091
|
TestKubernetes81091 |
Kubernetes/81148
TestKubernetes81148
|
TestKubernetes81148 |
Kubernetes/88331
TestKubernetes88331
|
TestKubernetes88331 |
Serving/3148
TestServing3148
|
TestServing3148 |
godel2
|
|
TestKubernetes81091
|
TestKubernetes81091 |
Click to show internal directories.
Click to hide internal directories.