You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
741 B
56 lines
741 B
package goConcurrency
|
|
|
|
import "testing"
|
|
|
|
func TestSyncErr(t *testing.T) {
|
|
SyncErr()
|
|
}
|
|
|
|
func TestSyncLock(t *testing.T) {
|
|
SyncLock()
|
|
}
|
|
|
|
func TestSyncMutex(t *testing.T) {
|
|
SyncMutex()
|
|
}
|
|
|
|
func TestSyncLockAndNo(t *testing.T) {
|
|
SyncLockAndNo()
|
|
}
|
|
|
|
func TestSyncRLock(t *testing.T) {
|
|
SyncRLock()
|
|
}
|
|
|
|
func TestSyncMapErr(t *testing.T) {
|
|
SyncMapErr()
|
|
}
|
|
|
|
func TestSyncSyncMap(t *testing.T) {
|
|
SyncSyncMap()
|
|
}
|
|
|
|
func TestSyncSyncMapMethod(t *testing.T) {
|
|
SyncSyncMapMethod()
|
|
}
|
|
|
|
func TestSyncAtomicAdd(t *testing.T) {
|
|
SyncAtomicAdd()
|
|
}
|
|
|
|
func TestSyncAtomicValue(t *testing.T) {
|
|
SyncAtomicValue()
|
|
}
|
|
|
|
func TestSyncPool(t *testing.T) {
|
|
SyncPool()
|
|
}
|
|
|
|
func TestSyncOnce(t *testing.T) {
|
|
SyncOnce()
|
|
}
|
|
|
|
func TestSyncCond(t *testing.T) {
|
|
SyncCond()
|
|
}
|