Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add unit test for normal_dot_vec #388

Merged

Conversation

GreatV
Copy link
Contributor

@GreatV GreatV commented Jun 17, 2023

PR types

Others

PR changes

Others

Describe

add unit test for normal_dot_vec.py

pytest --cov=./ppsci/equation/pde test/equation/test_normal_dot_vec.py
========================================================= test session starts ==========================================================
platform linux -- Python 3.10.6, pytest-7.3.2, pluggy-1.0.0
rootdir: /home/greatx/repos/PaddleScience
plugins: anyio-3.7.0, cov-4.1.0
collected 1 item                                                                                                                       

test/equation/test_normal_dot_vec.py .                                                                                           [100%]

---------- coverage: platform linux, python 3.10.6-final-0 -----------
Name                                      Stmts   Miss  Cover
-------------------------------------------------------------
ppsci/equation/pde/__init__.py                9      0   100%
ppsci/equation/pde/base.py                   26      7    73%
ppsci/equation/pde/biharmonic.py             17     13    24%
ppsci/equation/pde/laplace.py                15     11    27%
ppsci/equation/pde/linear_elasticity.py     155    149     4%
ppsci/equation/pde/navier_stokes.py          60     53    12%
ppsci/equation/pde/normal_dot_vec.py         13      0   100%
ppsci/equation/pde/poisson.py                13      9    31%
ppsci/equation/pde/viv.py                    20     13    35%
-------------------------------------------------------------
TOTAL                                       328    255    22%


========================================================== 1 passed in 4.36s ===========================================================


@paddle-bot
Copy link

paddle-bot bot commented Jun 17, 2023

Thanks for your contribution!

Copy link
Collaborator

@HydrogenSulfate HydrogenSulfate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@HydrogenSulfate HydrogenSulfate merged commit 7263832 into PaddlePaddle:develop Jun 17, 2023
@GreatV GreatV deleted the add_test_normal_dot_vel branch June 17, 2023 09:58
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Jun 19, 2023
huohuohuohuohuo123 pushed a commit to huohuohuohuohuo123/PaddleScience that referenced this pull request Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants