MCPcopy Create free account
hub / github.com/3rdparty/libprocess / DropUnionHttpRequests

Function DropUnionHttpRequests

include/process/gmock.hpp:602–618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600 typename Path,
601 typename Deserializer>
602void DropUnionHttpRequests(
603 Message message,
604 UnionType unionType,
605 Path path,
606 Deserializer deserializer,
607 bool drop = false)
608{
609 TestsFilter* filter = FilterTestEventListener::instance()->install();
610 Future<http::Request> future;
611 synchronized (filter->mutex) {
612 EXPECT_CALL(filter->mock, filter(
613 testing::A<const UPID&>(),
614 testing::A<const HttpEvent&>()))
615 .With(UnionHttpMatcher(message, unionType, path, deserializer))
616 .WillRepeatedly(testing::Return(true));
617 }
618}
619
620
621template <typename Message, typename Path, typename Deserializer>

Callers

nothing calls this directly

Calls 3

filterFunction · 0.85
synchronizedFunction · 0.50
installMethod · 0.45

Tested by

no test coverage detected