Skip to content

Commit

Permalink
Add internal package for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rakyll committed Jun 6, 2020
1 parent c73e7dd commit 3d36ebc
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
all:
gotest -v -benchmem -run=.* -bench=.* .
30 changes: 30 additions & 0 deletions internal/internal_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package internal

import (
"testing"
"time"
)

func TestA(t *testing.T) {
}

func TestB(t *testing.T) {
t.Fatal("failed")
}

func TestC(t *testing.T) {
t.Parallel()
time.Sleep(time.Second)
t.Fatal("failed")
}

func TestD(t *testing.T) {
t.Parallel()
t.Fatal("failed")
}

func BenchmarkA(b *testing.B) {
}

0 comments on commit 3d36ebc

Please sign in to comment.