Back to

package componentdocs

Latest Go to latest
Published: Jun 16, 2020 | License: Apache-2.0 | Module:


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


func VerifyComponentDocumentation

func VerifyComponentDocumentation(projectPath string, relativeDefaultComponentsPath string, projectGoModule string) error

VerifyComponentDocumentation returns an error if for at least one enabled component is missing. "projectPath" is the absolute path to the root of the project to which the components belong. "defaultComponentsFilePath" is the path to the file that contains imports to all required components, "goModule" is the Go module to which the imports belong. This method is intended to be used only to verify documentation in Opentelemetry core and contrib repositories. Examples, 1) Usage in the core repo: componenttest.VerifyComponentDocumentation(


2) Usage in the contrib repo: componenttest.VerifyComponentDocumentation(

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier