github.com/palcoin-project/palcd@v1.0.0/blockchain/fullblocktests/doc.go (about) 1 // Copyright (c) 2016 The btcsuite developers 2 // Use of this source code is governed by an ISC 3 // license that can be found in the LICENSE file. 4 5 /* 6 Package fullblocktests provides a set of block consensus validation tests. 7 8 All of the generated test instances involve full blocks that are to be used for 9 testing the consensus validation rules. The tests are intended to be flexible 10 enough to allow both unit-style tests directly against the blockchain code as 11 well as integration style tests over the peer-to-peer network. To achieve that 12 goal, each test contains additional information about the expected result, 13 however that information can be ignored when doing comparison tests between two 14 independent versions over the peer-to-peer network. 15 16 This package has intentionally been designed so it can be used as a standalone 17 package for any projects needing to test their implementation against a full set 18 of blocks that exercise the consensus validation rules. 19 */ 20 package fullblocktests