logtest

package
v0.17.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package logtest provides a regression check shared by fleetcli and fleet-controller subcommand packages: any Run method that uses the controller-runtime logger must also configure it via ctrl.SetLogger, or its log output is silently dropped.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertPackageConfiguresLogger

func AssertPackageConfiguresLogger(t *testing.T)

AssertPackageConfiguresLogger scans every non-test .go file in the caller's directory. For each Run method whose body uses the controller-runtime logger, it fails t if that method does not also call SetLogger.

Types

This section is empty.

Jump to

Keyboard shortcuts

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