testing_utils

package
v0.0.0-...-0e47ead Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertDifferentSize

func AssertDifferentSize[Expected any, Actual any](t *testing.T)

func AssertSameSize

func AssertSameSize[Expected any, Actual any](t *testing.T)

AssertSameSize tests if 2 data types are of the same size in memory. It is designed to check for things like C unions, where one struct need to be manually padded to the size of another struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

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