MCPcopy Create free account
hub / github.com/BitVM/BitVM / test_padding

Function test_padding

bitvm/src/hash/sha256_u4.rs:565–577  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

563
564 #[test]
565 fn test_padding() {
566 let (script, _) = padding(1);
567 let script = script! {
568 { 0}
569 { 1 }
570 { script }
571 { u4_drop(128) }
572 OP_TRUE
573 };
574
575 let res = execute_script(script);
576 assert!(res.success);
577 }
578
579 #[test]
580 fn test_split_padding() {

Callers

nothing calls this directly

Calls 2

execute_scriptFunction · 0.85
paddingFunction · 0.70

Tested by

no test coverage detected