Documentation

Overview

    Package componenttest define types and functions used to help test packages implementing the component package interfaces.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func NewNopExporterFactory

    func NewNopExporterFactory() component.ExporterFactory

      NewNopExporterFactory returns a component.ExporterFactory that constructs nop exporters.

      func NewNopExtensionFactory

      func NewNopExtensionFactory() component.ExtensionFactory

        NewNopExtensionFactory returns a component.ExtensionFactory that constructs nop exporters.

        func NewNopHost

        func NewNopHost() component.Host

          NewNopHost returns a new instance of nopHost with proper defaults for most tests.

          func NewNopProcessorFactory

          func NewNopProcessorFactory() component.ProcessorFactory

            NewNopProcessorFactory returns a component.ProcessorFactory that constructs nop exporters.

            func NewNopReceiverFactory

            func NewNopReceiverFactory() component.ReceiverFactory

              NewNopReceiverFactory returns a component.ReceiverFactory that constructs nop exporters.

              func NopFactories

              func NopFactories() (component.Factories, error)

                NopFactories returns a component.Factories with all nop factories.

                func VerifyProcessorShutdown

                func VerifyProcessorShutdown(t *testing.T, factory component.ProcessorFactory, cfg config.Processor)

                  VerifyProcessorShutdown verifies the processor doesn't produce telemetry data after shutdown.

                  Types

                  This section is empty.