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
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

Jump to

Keyboard shortcuts

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