scriptTestWitnessOffset returns the field offset caused by optional witness data at the beginning of a script_tests.json entry.
(test []interface{})
| 62 | // scriptTestWitnessOffset returns the field offset caused by optional witness |
| 63 | // data at the beginning of a script_tests.json entry. |
| 64 | func scriptTestWitnessOffset(test []interface{}) int { |
| 65 | if len(test) == 0 { |
| 66 | return 0 |
| 67 | } |
| 68 | |
| 69 | if _, ok := test[0].([]interface{}); ok { |
| 70 | return 1 |
| 71 | } |
| 72 | |
| 73 | return 0 |
| 74 | } |
| 75 | |
| 76 | // scriptTestName returns a descriptive test name for the given reference script |
| 77 | // test data. |
no outgoing calls
no test coverage detected
searching dependent graphs…