thrifttest

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package thrifttest contains utilities to help test THrift serialization.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(t *testing.T, contents string) *compile.Module

Parse parses the given file contents as a Thrift file with no dependencies.

Types

type DummyFS

type DummyFS map[string][]byte

DummyFS is an in-memory implementation of the Filesystem interface.

func (DummyFS) Abs

func (DummyFS) Abs(filename string) (string, error)

Abs returns the absolute path for the specified file. The dummy implementation always returns the original path.

func (DummyFS) Read

func (fs DummyFS) Read(filename string) ([]byte, error)

Read returns the contents for the specified file.

Jump to

Keyboard shortcuts

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