tests

command
v0.0.0-...-fc2ec5c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 9 Imported by: 0

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)
	}()
}

Directories

Path Synopsis
GoBench
Cockroach/27659 command
TestCockroach27659
TestCockroach27659
Cockroach/35501 command
Etcd/4876 command
TestEtcd4876 - PASS
TestEtcd4876 - PASS
Etcd/8149 command
Etcd/9446 command
Grpc/1748 command
TestGrpc1748 - PASS
TestGrpc1748 - PASS
Grpc/1862 command
TestGrpc1862
TestGrpc1862
Grpc/3090 command
TestGrpc3090
TestGrpc3090
Istio/16742 command
TestIstio16742
TestIstio16742
Istio/8144 command
TestIstio8144
TestIstio8144
Istio/8214 command
TestIstio8214
TestIstio8214
Istio/8967 command
TestIstio8967 - PASS
TestIstio8967 - PASS
Kubernetes/79631 command
TestKubernetes79631
TestKubernetes79631
Kubernetes/80284 command
TestKubernetes80284
TestKubernetes80284
Kubernetes/81091 command
TestKubernetes81091
TestKubernetes81091
Kubernetes/81148 command
TestKubernetes81148
TestKubernetes81148
Kubernetes/88331 command
TestKubernetes88331
TestKubernetes88331
Serving/3148 command
TestServing3148
TestServing3148
godel2
loop command
TestKubernetes81091
TestKubernetes81091

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL