lib

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

README

Basic go_test functionality
===========================

.. _go_test: /go/core.rst#_go_test

Tests to ensure that basic features of `go_test`_ are working as expected.

.. contents::

internal_test
-------------

Test that a `go_test`_ rule that adds white box tests to an embedded package works.
This builds a library with `lib.go <lib.go>`_ and then a package with an
`internal test <internal_test.go>`_ that contains the test case.
It uses x_def stamped values to verify the library names are correct.

external_test
-------------

Test that a `go_test`_ rule that adds black box tests for a dependant package works.
This builds a library with `lib.go <lib.go>`_ and then a package with an
`external test <external_test.go>`_ that contains the test case.
It uses x_def stamped values to verify the library names are correct.

combined_test
-------------
Test that a `go_test`_ rule that adds both white and black box tests for a
package works.
This builds a library with `lib.go <lib.go>`_ and then a one merged with the
`internal test <internal_test.go>`_, and then another one that depends on it
with the `external test <external_test.go>`_.
It uses x_def stamped values to verify that all library names are correct.
Verifies #413

flag_test
---------
Test that a `go_test`_ rule that adds flags, even in the main package, can read
the flag.
This does not even build a library, it's a test in the main package with no
dependancies that checks it can declare and then read a flag.
Verifies #838

only_testmain_test
------------------
Test that an `go_test`_ that contains a ``TestMain`` function but no tests
still builds and passes.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Got = "Got"

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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