• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

FEniCS / ffcx / 20177758811

12 Dec 2025 07:33PM UTC coverage: 84.609% (+0.2%) from 84.44%
20177758811

Pull #806

github

schnellerhase
one more
Pull Request #806: Backend formatter interface

158 of 168 new or added lines in 9 files covered. (94.05%)

4167 of 4925 relevant lines covered (84.61%)

0.85 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/ffcx/codegeneration/interface.py
1
# Copyright (C) 2025 Paul T. Kühner
2
#
3
# This file is part of FFCx. (https://www.fenicsproject.org)
4
#
5
# SPDX-License-Identifier:    LGPL-3.0-or-later
6

7
"""Backend interface declarations."""
8

9
import abc
1✔
10

11
from numpy import typing as npt
1✔
12

13
import ffcx.codegeneration.lnodes as L
1✔
14

15

16
class Formatter(abc.ABC):
1✔
17
    """Formatter interface."""
18

19
    def __init__(self, dtype: npt.DTypeLike) -> None:
1✔
20
        """Create."""
NEW
21
        raise NotImplementedError
×
22

23
    def __call__(self, obj: L.LNode) -> str:
1✔
24
        """Convert L-Node(s) to string representation."""
NEW
25
        raise NotImplementedError
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc