static void TestAgentPromises() { Promise pp = { 0 }; pp.conlist = NULL; pp.audit = NULL; printf("%d. Testing promise attribute completeness (with no desired intention)\n", ++NR); GetFilesAttributes(&pp); GetReportsAttributes(&pp); GetExecAttributes(&pp); GetProcessAttributes(&pp); GetStorageAttributes(&pp); GetClassContextAttributes(&pp); GetTopicsAttributes(&pp); GetOccurrenceAttributes(&pp); GetMethodAttributes(&pp); GetInterfacesAttributes(&pp); GetInsertionAttributes(&pp); GetDeletionAttributes(&pp); GetColumnAttributes(&pp); GetReplaceAttributes(&pp); printf(" -> All non-listed items are accounted for\n"); }
PromiseResult VerifyProcessesPromise(EvalContext *ctx, const Promise *pp) { Attributes a = GetProcessAttributes(ctx, pp); ProcessSanityChecks(a, pp); return VerifyProcesses(ctx, a, pp); }
void VerifyProcessesPromise(EvalContext *ctx, Promise *pp) { Attributes a = { {0} }; a = GetProcessAttributes(ctx, pp); ProcessSanityChecks(a, pp); VerifyProcesses(ctx, a, pp); }
void VerifyProcessesPromise(Promise *pp) { Attributes a = { {0} }; a = GetProcessAttributes(pp); ProcessSanityChecks(a, pp); VerifyProcesses(a, pp); }