Lines Matching +refs:check +refs:flags

41 	int flags;  member
53 check(struct hostkey_foreach_line *l, void *_ctx) in check() function
57 int parse_key = (ctx->flags & HKF_WANT_PARSE_KEY) != 0; in check()
58 const int matching = (ctx->flags & HKF_WANT_MATCH) != 0; in check()
853 ctx.flags = HKF_WANT_PARSE_KEY; in test_iterate()
856 check, &ctx, NULL, NULL, ctx.flags), 0); in test_iterate()
864 ctx.flags = 0; in test_iterate()
867 check, &ctx, NULL, NULL, ctx.flags), 0); in test_iterate()
875 ctx.flags = 0; in test_iterate()
879 check, &ctx, "prometheus.example.com", NULL, ctx.flags), 0); in test_iterate()
887 ctx.flags = 0; in test_iterate()
891 check, &ctx, "sisyphus.example.com", NULL, ctx.flags), 0); in test_iterate()
899 ctx.flags = HKF_WANT_MATCH; in test_iterate()
903 check, &ctx, "prometheus.example.com", NULL, ctx.flags), 0); in test_iterate()
911 ctx.flags = HKF_WANT_MATCH; in test_iterate()
915 check, &ctx, "sisyphus.example.com", NULL, ctx.flags), 0); in test_iterate()
923 ctx.flags = 0; in test_iterate()
926 check, &ctx, "actaeon.example.org", NULL, ctx.flags), 0); in test_iterate()
934 ctx.flags = HKF_WANT_MATCH; in test_iterate()
937 check, &ctx, "actaeon.example.org", NULL, ctx.flags), 0); in test_iterate()
945 ctx.flags = 0; in test_iterate()
949 check, &ctx, "tiresias.example.org", "192.0.2.1", ctx.flags), 0); in test_iterate()
957 ctx.flags = 0; in test_iterate()
961 check, &ctx, "tiresias.example.org", "2001:db8::1", ctx.flags), 0); in test_iterate()
969 ctx.flags = HKF_WANT_MATCH; in test_iterate()
973 check, &ctx, "tiresias.example.org", "192.0.2.1", ctx.flags), 0); in test_iterate()
981 ctx.flags = HKF_WANT_MATCH; in test_iterate()
985 check, &ctx, "tiresias.example.org", "2001:db8::1", ctx.flags), 0); in test_iterate()
993 ctx.flags = 0; in test_iterate()
996 check, &ctx, "tiresias.example.org", "192.168.0.1", ctx.flags), 0); in test_iterate()
1004 ctx.flags = HKF_WANT_MATCH; in test_iterate()
1007 check, &ctx, "tiresias.example.org", "::1", ctx.flags), 0); in test_iterate()
1015 ctx.flags = 0; in test_iterate()
1020 check, &ctx, "sisyphus.example.com", "192.0.2.1", ctx.flags), 0); in test_iterate()
1028 ctx.flags = HKF_WANT_MATCH; in test_iterate()
1033 check, &ctx, "prometheus.example.com", in test_iterate()
1034 "2001:db8::1", ctx.flags), 0); in test_iterate()
1042 ctx.flags = HKF_WANT_PARSE_KEY; in test_iterate()
1047 check, &ctx, "sisyphus.example.com", "192.0.2.1", ctx.flags), 0); in test_iterate()
1055 ctx.flags = HKF_WANT_MATCH|HKF_WANT_PARSE_KEY; in test_iterate()
1060 check, &ctx, "prometheus.example.com", in test_iterate()
1061 "2001:db8::1", ctx.flags), 0); in test_iterate()