blackmagic

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionGroupSorter

func ActionGroupSorter() cmp.Option

func UUIDComparer

func UUIDComparer(expectedPlaceholders, actualPlaceholders map[string]int) cmp.Option

Here is some black magic. Problem is: `ydbops` produces random UUIDs during execution. This is a stateful checker that checks all the string fields in test scenario, and if you specified equal string labels in test scenario for uuids (e.g. test-uuid-1 and test-uuid-1 in some subsequent object), then this comparer makes sure that two ACTUALLY passed uuids in these exact locations are ALSO the same.

TODO jorres@: Maybe think about adding a hidden `--static-uuids` purely for e2e testing, not inventing this complicated crutch here...

Types

This section is empty.

Jump to

Keyboard shortcuts

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