-
Notifications
You must be signed in to change notification settings - Fork 0
/
all_spec_test.go
36 lines (31 loc) · 975 Bytes
/
all_spec_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/***** BEGIN LICENSE BLOCK *****
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# The Initial Developer of the Original Code is the Mozilla Foundation.
# Portions created by the Initial Developer are Copyright (C) 2012
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Victor Ng (vng@mozilla.com)
#
# ***** END LICENSE BLOCK *****/
package toml
import (
"github.com/rafrombrc/gospec/src/gospec"
"testing"
)
func TestAllSpecs(t *testing.T) {
r := gospec.NewRunner()
r.Parallel = false
r.AddSpec(DecodeSpec)
r.AddSpec(InsensitiveDecodeSpec)
r.AddSpec(ExamplePrimitiveDecodeSpec)
r.AddSpec(ExampleDecodeSpec)
r.AddSpec(DecodeStrictSpec)
r.AddSpec(PrimitiveDecodeStrictSpec)
r.AddSpec(DecodeStrictInterfaceSpec)
r.AddSpec(CheckTypeSpec)
gospec.MainGoTest(r, t)
}