aboutsummaryrefslogtreecommitdiffstats
path: root/tests/block_test.go
blob: f1a92be49ee428dd90e3dacb84bed7e0bb9e70d6 (plain) (blame)
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
37
38
39
40
41
42
43
package tests

import (
    "path/filepath"
    "testing"
)

func TestBcValidBlockTests(t *testing.T) {
    runBlockTestsInFile(filepath.Join(blockTestDir, "bcValidBlockTest.json"), []string{"SimpleTx3"})
}

func TestBcUncleTests(t *testing.T) {
    runBlockTestsInFile(filepath.Join(blockTestDir, "bcUncleTest.json"), []string{})
    runBlockTestsInFile(filepath.Join(blockTestDir, "bcBruncleTest.json"), []string{})
}

func TestBcUncleHeaderValidityTests(t *testing.T) {
    runBlockTestsInFile(filepath.Join(blockTestDir, "bcUncleHeaderValiditiy.json"), []string{})
}

func TestBcInvalidHeaderTests(t *testing.T) {
    runBlockTestsInFile(filepath.Join(blockTestDir, "bcInvalidHeaderTest.json"), []string{})
}

func TestBcInvalidRLPTests(t *testing.T) {
    runBlockTestsInFile(filepath.Join(blockTestDir, "bcInvalidRLPTest.json"), []string{})
}

func TestBcRPCAPITests(t *testing.T) {
    runBlockTestsInFile(filepath.Join(blockTestDir, "bcRPC_API_Test.json"), []string{})
}

func TestBcForkBlockTests(t *testing.T) {
    runBlockTestsInFile(filepath.Join(blockTestDir, "bcForkBlockTest.json"), []string{})
}

func TestBcTotalDifficulty(t *testing.T) {
    runBlockTestsInFile(filepath.Join(blockTestDir, "bcTotalDifficultyTest.json"), []string{})
}

func TestBcWallet(t *testing.T) {
    runBlockTestsInFile(filepath.Join(blockTestDir, "bcWalletTest.json"), []string{})
}