fn fuzz<T: EthSpec>(ssz_bytes: &[u8]) -> Result<Vec<u8>, ()> {
    let test_case = match AttestationTestCase::from_ssz_bytes(&ssz_bytes) {
        Ok(test_case) => test_case,
        Err(e) => panic!(
            "rs deserialization failed. Preproc should ensure decodable: {:?}",
            e
        ),
    };

    let post_state: BeaconState<T> = match test_case.process_attestation() {
        Ok(state) => state,
        _ => return Err(()),
    };

    Ok(post_state.as_ssz_bytes())
}
/// Accepts an SSZ-encoded `AttestationTestCase` and returns an SSZ-encoded post-state on success,
/// or nothing on failure.
Accepts an SSZ-encoded `AttestationTestCase` and returns an SSZ-encoded post-state on success,
or nothing on failure.
Accepts an SSZ - encoded ` AttestationTestCase ` and returns an SSZ - encoded post - state on success or nothing on failure .
fn fuzz<T: EthSpec>(ssz_bytes: &[u8]) -> Result<Vec<u8>, ()> {
    let test_case = match AttestationTestCase::from_ssz_bytes(&ssz_bytes) {
        Ok(test_case) => test_case,
        Err(e) => panic!(
            "rs deserialization failed. Preproc should ensure decodable: {:?}",
            e
        ),
    };
    let post_state: BeaconState<T> = match test_case.process_attestation() {
        Ok(state) => state,
        _ => return Err(()),
    };
    Ok(post_state.as_ssz_bytes())
}
fn fuzz < T : EthSpec > ( ssz_bytes : & [ u8 ] ) -> Result < Vec < u8 > , ( ) > { let test_case = match AttestationTestCase :: from_ssz_bytes ( & ssz_bytes ) { Ok ( test_case ) => test_case , Err ( e ) => panic ! ( " " e ) , } ; let post_state : BeaconState < T > = match test_case . process_attestation ( ) { Ok ( state ) => state , _ => return Err ( ( ) ) , } ; Ok ( post_state . as_ssz_bytes ( ) ) }
Accepts an SSZ-encoded `AttestationTestCase` and returns an SSZ-encoded post-state on success,
or nothing on failure.
Accepts an SSZ - encoded ` AttestationTestCase ` and returns an SSZ - encoded post - state on success or nothing on failure .
ssz_bytes
&[u8]
ssz_bytes
&[u8]