Documentation

Overview

    Package testlogger implements a logr.Logger suitable for writing test assertions.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type Logger

    type Logger struct {
    	logr.Logger
    	// contains filtered or unexported fields
    }

      Logger implements logr.Logger in a way that captures logs for test assertions.

      func New

      func New(t *testing.T) *Logger

        New returns a new test Logger.

        func (*Logger) Lines

        func (l *Logger) Lines() []string

          Lines returns the lines written to the test logger.

          Source Files