aboutsummaryrefslogblamecommitdiffstats
path: root/tests/block_test.go
blob: b014fb52e9338c426ba4fbcfc30c30ad6f6953e6 (plain) (tree)
1
2
3
4
5
6
7
8
9


             
                       
                 

 
                                          
                                                                                                 


                            


                                     
                                                                                            


                            
                                                                                             


                            


                                                   
                                                                                                       


                            


                                             
                                                                                                    


                            


                                          
                                                                                                 


                            

 
                                      
                                                                                               


                            


                                         
                                                                                                


                            

 
                                          
                                                                                                      


                            

 
                                 
                                                                                             


                            
 






                                                                                                
package tests

import (
    "path/filepath"
    "testing"
)

func TestBcValidBlockTests(t *testing.T) {
    err := RunBlockTest(filepath.Join(blockTestDir, "bcValidBlockTest.json"), BlockSkipTests)
    if err != nil {
        t.Fatal(err)
    }
}

func TestBcUncleTests(t *testing.T) {
    err := RunBlockTest(filepath.Join(blockTestDir, "bcUncleTest.json"), BlockSkipTests)
    if err != nil {
        t.Fatal(err)
    }
    err = RunBlockTest(filepath.Join(blockTestDir, "bcBruncleTest.json"), BlockSkipTests)
    if err != nil {
        t.Fatal(err)
    }
}

func TestBcUncleHeaderValidityTests(t *testing.T) {
    err := RunBlockTest(filepath.Join(blockTestDir, "bcUncleHeaderValiditiy.json"), BlockSkipTests)
    if err != nil {
        t.Fatal(err)
    }
}

func TestBcInvalidHeaderTests(t *testing.T) {
    err := RunBlockTest(filepath.Join(blockTestDir, "bcInvalidHeaderTest.json"), BlockSkipTests)
    if err != nil {
        t.Fatal(err)
    }
}

func TestBcInvalidRLPTests(t *testing.T) {
    err := RunBlockTest(filepath.Join(blockTestDir, "bcInvalidRLPTest.json"), BlockSkipTests)
    if err != nil {
        t.Fatal(err)
    }
}

func TestBcRPCAPITests(t *testing.T) {
    err := RunBlockTest(filepath.Join(blockTestDir, "bcRPC_API_Test.json"), BlockSkipTests)
    if err != nil {
        t.Fatal(err)
    }
}

func TestBcForkBlockTests(t *testing.T) {
    err := RunBlockTest(filepath.Join(blockTestDir, "bcForkBlockTest.json"), BlockSkipTests)
    if err != nil {
        t.Fatal(err)
    }
}

func TestBcTotalDifficulty(t *testing.T) {
    err := RunBlockTest(filepath.Join(blockTestDir, "bcTotalDifficultyTest.json"), BlockSkipTests)
    if err != nil {
        t.Fatal(err)
    }
}

func TestBcWallet(t *testing.T) {
    err := RunBlockTest(filepath.Join(blockTestDir, "bcWalletTest.json"), BlockSkipTests)
    if err != nil {
        t.Fatal(err)
    }
}

func TestBcGasPricer(t *testing.T) {
    err := RunBlockTest(filepath.Join(blockTestDir, "bcGasPricerTest.json"), BlockSkipTests)
    if err != nil {
        t.Fatal(err)
    }
}