Skip to content

testing: test example missing from beginning of package doc #27839

@leighmcculloch

Description

@leighmcculloch

What version of Go are you using (go version)?

go version go1.11

What did you do?

I went to the testing package documentation to find an example to share with another person.

What did you expect to see?

I expected to be see a simple few line example demonstrating how to write a test function and how to write an expectation.

What did you see instead?

Full examples for benchmarks, and example tests, and even an example of how to skip a test, but no examples of how to write a test with a simple expectation.

CL

I can open a small CL adding an example to the package documentation unless anyone feels like that'd be a bad idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions