test

package
v0.0.0-...-bb15e6e Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package test provides common functionality for importer tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindChildRefs

func FindChildRefs(parent *importer.Object) ([]blob.Ref, error)

FindChildRefs returns the children of an importer.Object

func GetRequiredChildPathObj

func GetRequiredChildPathObj(parent *importer.Object, path string) (*importer.Object, error)

GetRequiredChildPathObj returns the child object at path or an error if none exists.

func ImporterTest

func ImporterTest(t *testing.T, importerName string, transport http.RoundTripper, fn func(*importer.RunContext))

ImporterTest sets up the environment for an importer integration test.

Types

This section is empty.

Jump to

Keyboard shortcuts

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