]> Cypherpunks repositories - gostls13.git/commit
runtime/internal/atomic: add tests for And8 and Or8
authorMichael Munday <mike.munday@ibm.com>
Wed, 30 Oct 2019 12:45:33 +0000 (12:45 +0000)
committerMichael Munday <mike.munday@ibm.com>
Thu, 31 Oct 2019 09:49:57 +0000 (09:49 +0000)
commit10855608bc9361aec0f17f22bf24313a3d07ec85
tree1fc2794c0a08da447fef3d66a96e76b40f262a80
parent6becb033341602f2df9d7c55cc23e64b925bbee2
runtime/internal/atomic: add tests for And8 and Or8

Add some simple unit tests for these atomic operations. These can't
catch all the bugs that are possible with these operations but at
least they provide some coverage.

Change-Id: I94b9f451fcc9fecdb2a1448c5357b019563ad275
Reviewed-on: https://go-review.googlesource.com/c/go/+/204317
Run-TryBot: Michael Munday <mike.munday@ibm.com>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/internal/atomic/atomic_test.go