testing

package module
v1.172.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

  • Copyright (C) 2020-2026 Arm Limited or its affiliates and Contributors. All rights reserved.
  • SPDX-License-Identifier: Apache-2.0

Package testing preserves the existing map serialisation test helpers.

Deprecated: Use github.com/ARM-software/golang-utils/utils/serialisation/maps/testing.

Index

Constants

View Source
const (
	// TestEnumStringVer0 is the first text representation.
	TestEnumStringVer0 = serialisation.TestEnumStringVer0
	// TestEnumStringVer1 is the second text representation.
	TestEnumStringVer1 = serialisation.TestEnumStringVer1
	// TestEnumWithUnmarshal0 is the first enum value.
	TestEnumWithUnmarshal0 TestEnumWithUnmarshal = serialisation.TestEnumWithUnmarshal0
	// TestEnumWithUnmarshal1 is the second enum value.
	TestEnumWithUnmarshal1 TestEnumWithUnmarshal = serialisation.TestEnumWithUnmarshal1
	// TestEnumWithoutUnmarshal0 is the first enum value without text unmarshalling.
	TestEnumWithoutUnmarshal0 TestEnumWithoutUnmarshal = serialisation.TestEnumWithoutUnmarshal0
	// TestEnumWithoutUnmarshal1 is the second enum value without text unmarshalling.
	TestEnumWithoutUnmarshal1 TestEnumWithoutUnmarshal = serialisation.TestEnumWithoutUnmarshal1
)

Variables

This section is empty.

Functions

func ValidationFunc

func ValidationFunc(value any) error

ValidationFunc checks a test enum value.

Types

type TestEnumWithUnmarshal

type TestEnumWithUnmarshal = serialisation.TestEnumWithUnmarshal

TestEnumWithUnmarshal is a test enum with text unmarshalling.

type TestEnumWithoutUnmarshal

type TestEnumWithoutUnmarshal = serialisation.TestEnumWithoutUnmarshal

TestEnumWithoutUnmarshal is a test enum without text unmarshalling.

Jump to

Keyboard shortcuts

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