MCPcopy Create free account
hub / github.com/CPChain/chain / TestPrecompiledBn256Add

Function TestPrecompiledBn256Add

core/vm/contracts_test.go:444–448  ·  view source on GitHub ↗

Tests the sample inputs from the elliptic curve addition EIP 213.

(t *testing.T)

Source from the content-addressed store, hash-verified

442
443// Tests the sample inputs from the elliptic curve addition EIP 213.
444func TestPrecompiledBn256Add(t *testing.T) {
445 for _, test := range bn256AddTests {
446 testPrecompiled("06", test, t)
447 }
448}
449
450// Benchmarks the sample inputs from the elliptic curve addition EIP 213.
451func BenchmarkPrecompiledBn256Add(bench *testing.B) {

Callers

nothing calls this directly

Calls 1

testPrecompiledFunction · 0.85

Tested by

no test coverage detected