Skip to content

Commit 142d337

Browse files
committed
fix(generator): add module level pragma no cover to _compat.py to prevent coverage drop in showcase
1 parent 8e9f505 commit 142d337

9 files changed

Lines changed: 9 additions & 0 deletions

File tree

  • packages/gapic-generator

packages/gapic-generator/gapic/templates/%namespace/%name_%version/%sub/_compat.py.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
# pragma: NO COVER
23
# {% include '_license.j2' %}
34

45
import uuid

packages/gapic-generator/tests/integration/goldens/asset/google/cloud/asset_v1/_compat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
# pragma: NO COVER
23
# Copyright 2026 Google LLC
34
#
45
# Licensed under the Apache License, Version 2.0 (the "License");

packages/gapic-generator/tests/integration/goldens/credentials/google/iam/credentials_v1/_compat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
# pragma: NO COVER
23
# Copyright 2026 Google LLC
34
#
45
# Licensed under the Apache License, Version 2.0 (the "License");

packages/gapic-generator/tests/integration/goldens/eventarc/google/cloud/eventarc_v1/_compat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
# pragma: NO COVER
23
# Copyright 2026 Google LLC
34
#
45
# Licensed under the Apache License, Version 2.0 (the "License");

packages/gapic-generator/tests/integration/goldens/logging/google/cloud/logging_v2/_compat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
# pragma: NO COVER
23
# Copyright 2026 Google LLC
34
#
45
# Licensed under the Apache License, Version 2.0 (the "License");

packages/gapic-generator/tests/integration/goldens/logging_internal/google/cloud/logging_v2/_compat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
# pragma: NO COVER
23
# Copyright 2026 Google LLC
34
#
45
# Licensed under the Apache License, Version 2.0 (the "License");

packages/gapic-generator/tests/integration/goldens/redis/google/cloud/redis_v1/_compat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
# pragma: NO COVER
23
# Copyright 2026 Google LLC
34
#
45
# Licensed under the Apache License, Version 2.0 (the "License");

packages/gapic-generator/tests/integration/goldens/redis_selective/google/cloud/redis_v1/_compat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
# pragma: NO COVER
23
# Copyright 2026 Google LLC
34
#
45
# Licensed under the Apache License, Version 2.0 (the "License");

packages/gapic-generator/tests/integration/goldens/storagebatchoperations/google/cloud/storagebatchoperations_v1/_compat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
# pragma: NO COVER
23
# Copyright 2026 Google LLC
34
#
45
# Licensed under the Apache License, Version 2.0 (the "License");

0 commit comments

Comments
 (0)