---
schema_version: "1"
id: f38a53dce73ee358ba3c3a4807b86707485171bb73f6cbac6725c15e78a60951
title: "ApexGuru Test Case Antipattern: Writing Filler Statements"
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/apexguru_test_case_antipattern_filler_statements.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.apexguru_test_case_antipattern_filler_statements.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b627f5ea71b541cd41ffe0c1f417255ba18d89d64ab4d2a64f9c5268fa8fee53
description: Using meaningless code to inflate test coverage undermines code quality. Filler statements cause technical debt, missed bugs, and false code confidence. Focus on quality over quantity. Write meaningful tests for actual business logic and use coverage as a guide, not the goal.
products:
  - Cross Cloud
release: "264"
---
# ApexGuru Test Case Antipattern: Writing Filler Statements

Using meaningless code to inflate test coverage undermines code quality. Filler statements cause technical debt, missed bugs, and false code confidence. Focus on quality over quantity. Write meaningful tests for actual business logic and use coverage as a guide, not the goal.

## Scope

Detection only

## Detection Example

```java
public class CodeCoverageInflationExample1 {
   public static void CodeCoverageInflation1() {

      //Filler code
      String str1 = 'Placeholder ';
      String str2 = 'Code';
      String result = str1 + str2;
      assertEquals('Placeholder Code', result);

      integer j = 0;
      j++;
      j++;
      j++;
      j++;
      j++;
      j++;
      j++;
      j++;
      j++;
      j++;
      j++;
      j++;
      j++;
      j++;
      j++;
      j++;

   }	
}
```