logs

package
v1.30.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package logs provides assertions over the JSON-encoded postgres logs captured from a pod. Callers that also import tests/utils/logs should alias one of the two to avoid the package name collision.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasQueryRecord

func HasQueryRecord(logEntries []map[string]interface{}, errorTestQuery, message, logger string) bool

HasQueryRecord reports whether any of the JSON log entries contains the expected query, message and logger triple. It is a predicate, not an Assert*-style helper, so it returns a bool for callers to feed into Eventually(...).Should(BeTrue()).

Types

This section is empty.

Jump to

Keyboard shortcuts

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