internal

package
v0.0.0-...-9cf7c1c Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

This package provides helper functions for testing hcsshim, primarily aimed at the end-to-end, integration, and functional tests in ./test. It can, however, be used by unit tests.

These files are primarily intended for tests, and using them in code will cause test dependencies to be treated normally, which may cause circular import issues with upstream packages that vendor hcsshim. See https://github.com/microsoft/hcsshim/issues/1148.

Even though this package is meant for testing, appending _test to all files causes issues when running or building tests in other folders (ie, ./test/cri-containerd). See https://github.com/golang/go/issues/8279. Additionally, adding a `//go:build functional` constraint would require internal tests (ie, schemaversion_test.go) and unit tests that import this package to be build with the `functional` tag.

Directories

Path Synopsis
This package provides testing wrappers around github.com/Microsoft/hcsshim/internal/cmd
This package provides testing wrappers around github.com/Microsoft/hcsshim/internal/cmd

Jump to

Keyboard shortcuts

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