profile: testing scaffold

A simple scaffold for testing various profile options and observing the output.

Updates #7 
Sold!

On Fri, Oct 31, 2014 at 1:41 AM, Gabriel Aszalos <notifications@github.com>
wrote:

> In profile_test.go:
>
> > +var profileTests = []struct {
> > +	name   string
> > +	code   string
> > +	checks []func(t *testing.T, stdout, stderr []byte, err error)
> > +}{{
> > +	name: "default profile",
> > +	code: `
> > +package main
> > +
> > +import "github.com/pkg/profile"
> > +
> > +func main() {
> > +	defer profile.Start().Stop()
> > +}	
> > +`,
> > +	checks: f(NoStdout, NoErr),
>
> Here it could be []checkFn{NoStdout, NoStderr, NoErr}....
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/pkg/profile/pull/9/files#r19608569>.
>