namespace XFEEDToolBox.Plugin; internal static unsafe partial class Navigation { private static uint CommunityGoalSelfTest() { uint passed=0;const string body="{\"initiatives\":[]}"; var frame=new Snapshot{entity=42,life=0x10000}; var prior=new CommunityGoalRequest{kind=0,state=3,generation=7,entity=frame.entity,life=frame.life,epoch=controllerEpoch,observed=100}; var proof=CommunityGoalProof(body); if(CommunityGoalReadProofMatches(frame,prior,proof,7,101,body))passed|=1; if(!CommunityGoalReadProofMatches(frame,prior,proof,7,60101,body))passed|=2; if(!CommunityGoalReadProofMatches(frame,prior,proof,8,101,body))passed|=4; if(!CommunityGoalReadProofMatches(frame,prior,proof,7,101,"{}"))passed|=8; frame.entity=43;if(!CommunityGoalReadProofMatches(frame,prior,proof,7,101,body))passed|=16;frame.entity=42; frame.life=0x20000;if(!CommunityGoalReadProofMatches(frame,prior,proof,7,101,body))passed|=32;frame.life=0x10000; prior.kind=2;if(!CommunityGoalReadProofMatches(frame,prior,proof,7,101,body))passed|=64;prior.kind=0; prior.epoch=unchecked(controllerEpoch+1);if(!CommunityGoalReadProofMatches(frame,prior,proof,7,101,body))passed|=128; return passed; } #if PLUGIN_NAVIGATION [UnmanagedCallersOnly(EntryPoint="XFENavigationCommunityGoalSelfTest")] internal static uint ExportCommunityGoalSelfTest()=>RunTest(CommunityGoalSelfTest); #endif }