Skip to content

Commit

Permalink
Ignore coverage in guppy function
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Jun 17, 2024
1 parent 865afdb commit 1c11951
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tket2-py/test/test_guppy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from tket2.circuit import Tk2Circuit

import math
import pytest

from guppylang import guppy
from guppylang.module import GuppyModule
Expand All @@ -19,10 +20,11 @@ def test_load_pure_circuit():

@guppy(module)
@no_type_check
@pytest.mark.no_cover
def my_func(
q0: qubit,
q1: qubit,
) -> tuple[qubit, qubit]:
) -> tuple[qubit, qubit]: # pragma: no cover
q0 = phased_x(q0, py(math.pi / 2), py(-math.pi / 2))
q0 = rz(q0, py(math.pi))
q1 = phased_x(q1, py(math.pi / 2), py(-math.pi / 2))
Expand Down Expand Up @@ -55,10 +57,11 @@ def test_load_hybrid_circuit():

@guppy(module)
@no_type_check
@pytest.mark.no_cover
def my_func(
q0: qubit,
q1: qubit,
) -> tuple[bool,]:
) -> tuple[bool,]: # pragma: no cover
q0 = phased_x(q0, py(math.pi / 2), py(-math.pi / 2))
q0 = rz(q0, py(math.pi))
q1 = phased_x(q1, py(math.pi / 2), py(-math.pi / 2))
Expand Down

0 comments on commit 1c11951

Please sign in to comment.