[libsoup/wip/http2: 3/3] http2: Ignore coverage of unsupported frames




commit ad0a150eec9f8ed7625afe9ca0ea668bc53dccd8
Author: Patrick Griffis <pgriffis igalia com>
Date:   Mon May 17 11:46:27 2021 -0500

    http2: Ignore coverage of unsupported frames

 libsoup/http2/soup-client-message-io-http2.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libsoup/http2/soup-client-message-io-http2.c b/libsoup/http2/soup-client-message-io-http2.c
index ed9bc310..e7caaa13 100644
--- a/libsoup/http2/soup-client-message-io-http2.c
+++ b/libsoup/http2/soup-client-message-io-http2.c
@@ -139,14 +139,15 @@ frame_type_to_string (nghttp2_frame_type type)
                 return "RST_STREAM";
         case NGHTTP2_SETTINGS:
                 return "SETTINGS";
-        case NGHTTP2_PUSH_PROMISE:
-                return "PUSH_PROMISE";
         case NGHTTP2_PING:
                 return "PING";
         case NGHTTP2_GOAWAY:
                 return "GOAWAY";
         case NGHTTP2_WINDOW_UPDATE:
                 return "WINDOW_UPDATE";
+        /* LCOV_EXCL_START */
+        case NGHTTP2_PUSH_PROMISE:
+                return "PUSH_PROMISE";
         case NGHTTP2_CONTINUATION:
                 return "CONTINUATION";
         case NGHTTP2_ALTSVC:
@@ -156,6 +157,7 @@ frame_type_to_string (nghttp2_frame_type type)
         default:
                 g_warn_if_reached ();
                 return "UNKNOWN";
+        /* LCOV_EXCL_STOP */
         }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]