Skip to content
26 changes: 19 additions & 7 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,31 @@ coverage:
status:
project:
default:
target: 50%
informational: true
if_ci_failed: ignore
patch:
default:
target: 50%
informational: true
if_ci_failed: ignore

parsers:
cobertura:
partials_as_hits: true
partials_as_hits: false

comment: #this is a top-level key
layout: "diff, flags, files"
# comment: #this is a top-level key
# layout: "diff, flags, files"
# behavior: default
# require_changes: false # if true: only post the comment if coverage changes
# require_base: false # [true :: must have a base report to post]
# require_head: true # [true :: must have a head report to post]
# hide_project_coverage: false # [true :: only show coverage on the git diff aka patch coverage]

comment:
layout: "header, files, footer"
behavior: default
require_changes: false # if true: only post the comment if coverage changes
require_base: false # [true :: must have a base report to post]
require_head: true # [true :: must have a head report to post]
hide_project_coverage: false # [true :: only show coverage on the git diff aka patch coverage]
require_changes: false
require_base: true
require_head: true
hide_project_coverage: false
2 changes: 2 additions & 0 deletions examples/closure-app/silabs/src/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ CHIP_ERROR AppTask::AppInit()
// Initialization of Closure Manager and endpoints of closure and closurepanel.
ClosureManager::GetInstance().Init();

SILABS_LOG("Testing the Closure App!");

// Update the LCD with the Stored value. Show QR Code if not provisioned
#ifdef DISPLAY_ENABLED
GetLCD().WriteDemoUI(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,33 @@ Protocols::InteractionModel::Status ClusterLogic::HandleStop()
Protocols::InteractionModel::Status ClusterLogic::HandleMoveTo(Optional<TargetPositionEnum> position, Optional<bool> latch,
Optional<Globals::ThreeLevelAutoEnum> speed)
{
ChipLogProgress(AppServer, "Demo function started - line 1");
ChipLogProgress(AppServer, "Demo function - line 2");
ChipLogProgress(AppServer, "Demo function - line 3");
ChipLogProgress(AppServer, "Demo function - line 4");
ChipLogProgress(AppServer, "Demo function - line 5");
ChipLogProgress(AppServer, "Demo function - line 6");
ChipLogProgress(AppServer, "Demo function - line 7");
ChipLogProgress(AppServer, "Demo function - line 8");
ChipLogProgress(AppServer, "Demo function - line 9");
ChipLogProgress(AppServer, "Demo function - line 10");
VerifyOrDieWithMsg(mIsInitialized, AppServer, "MoveTo Command called before Initialization of closure");

if(latch.HasValue()){
ChipLogProgress(AppServer, "Demo function - line 1");
ChipLogProgress(AppServer, "Demo function - line 2");
ChipLogProgress(AppServer, "Demo function - line 3");
ChipLogProgress(AppServer, "Demo function - line 4");
ChipLogProgress(AppServer, "Demo function - line 5");
}
else{
ChipLogProgress(AppServer, " ELSE Demo function - line 1");
ChipLogProgress(AppServer, " ELSE Demo function - line 2");
ChipLogProgress(AppServer, " ELSE Demo function - line 3");
ChipLogProgress(AppServer, " ELSE Demo function - line 4");
ChipLogProgress(AppServer, " ELSE Demo function - line 5");
}

VerifyOrReturnError(position.HasValue() || latch.HasValue() || speed.HasValue(), Status::InvalidCommand);

DataModel::Nullable<GenericOverallCurrentState> overallCurrentState;
Expand Down Expand Up @@ -689,6 +714,22 @@ CHIP_ERROR ClusterLogic::GenerateSecureStateChangedEvent(const bool secureValue)
return CHIP_NO_ERROR;
}

void DemoFunction()
{
// Demo function for testing coverage - basic print statements
ChipLogProgress(AppServer, "Demo function started - line 1");
ChipLogProgress(AppServer, "Demo function - line 2");
ChipLogProgress(AppServer, "Demo function - line 3");
ChipLogProgress(AppServer, "Demo function - line 4");
ChipLogProgress(AppServer, "Demo function - line 5");
ChipLogProgress(AppServer, "Demo function - line 6");
ChipLogProgress(AppServer, "Demo function - line 7");
ChipLogProgress(AppServer, "Demo function - line 8");
ChipLogProgress(AppServer, "Demo function - line 9");
ChipLogProgress(AppServer, "Demo function - line 10");
ChipLogProgress(AppServer, "Demo function completed - final line");
}

} // namespace ClosureControl
} // namespace Clusters
} // namespace app
Expand Down
Loading