Skip to content

Commit 26ca8b4

Browse files
Add license to codecov yml and remove components, and add a test fn to check comment
1 parent 0408fcf commit 26ca8b4

File tree

2 files changed

+10
-32
lines changed

2 files changed

+10
-32
lines changed

codecov.yml

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,12 @@
1+
# SPDX-FileCopyrightText: 2022 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
2+
# SPDX-FileContributor: Ben Ford <[email protected]>
3+
#
4+
# SPDX-License-Identifier: MIT OR Apache-2.0
5+
16
coverage:
27
status:
38
project: true
49
patch: true
510

611
ignore:
7-
- "./cxx_tests/" # This got included for some reason in either build or test and is not relevant to unit tests
8-
9-
component_management: # Allows separate statistics and reports for individual paths
10-
default_rules: # default rules that will be inherited by all components
11-
statuses:
12-
- type: project # in this case every component that doesn't have a status defined will have a project type one
13-
target: auto
14-
branches:
15-
- "!main"
16-
individual_components:
17-
- component_id: module-cxx-qt
18-
name: cxx-qt
19-
paths:
20-
- crates/cxx-qt/**
21-
- component_id: module-cxx-qt-build
22-
name: cxx-qt-build
23-
paths:
24-
- crates/cxx-qt-build/**
25-
- crates/qt-build-utils/**
26-
- component_id: module-cxx-qt-gen
27-
name: cxx-qt-gen
28-
paths:
29-
- crates/cxx-qt-gen/**
30-
- component_id: module-cxx-qt-lib
31-
name: cxx-qt-lib
32-
paths:
33-
- crates/cxx-qt-lib/**
34-
- crates/cxx-qt-lib-extras/**
35-
- component_id: module-cxx-qt-macro
36-
name: cxx-qt-macro
37-
paths:
38-
- crates/cxx-qt-macro/**
12+
- "./cxx_tests/" # This got included for some reason in either build or test and is not relevant to unit tests

crates/cxx-qt-gen/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ pub use writer::{cpp::write_cpp, rust::write_rust};
2424

2525
pub use syn::{Error, Result};
2626

27+
pub fn my_fn() {
28+
println!("Test fn!")
29+
}
30+
2731
#[cfg(test)]
2832
mod tests {
2933
use super::*;

0 commit comments

Comments
 (0)