Skip to content

refactor: opt code

Codecov / codecov/patch failed Dec 26, 2024 in 0s

61.29% of diff hit (target 68.43%)

View this Pull Request on Codecov

61.29% of diff hit (target 68.43%)

Annotations

Check warning on line 253 in packages/core/src/material/BaseMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/BaseMaterial.ts#L247-L253

Added lines #L247 - L253 were not covered by tests

Check warning on line 272 in packages/core/src/material/BaseMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/BaseMaterial.ts#L266-L272

Added lines #L266 - L272 were not covered by tests

Check warning on line 285 in packages/core/src/material/BaseMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/BaseMaterial.ts#L282-L285

Added lines #L282 - L285 were not covered by tests

Check warning on line 315 in packages/core/src/material/PBRMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/PBRMaterial.ts#L314-L315

Added lines #L314 - L315 were not covered by tests

Check warning on line 336 in packages/core/src/material/PBRMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/PBRMaterial.ts#L334-L336

Added lines #L334 - L336 were not covered by tests

Check warning on line 344 in packages/core/src/material/PBRMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/PBRMaterial.ts#L343-L344

Added lines #L343 - L344 were not covered by tests

Check warning on line 352 in packages/core/src/material/PBRMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/PBRMaterial.ts#L347-L352

Added lines #L347 - L352 were not covered by tests

Check warning on line 373 in packages/core/src/material/PBRMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/PBRMaterial.ts#L363-L373

Added lines #L363 - L373 were not covered by tests

Check warning on line 381 in packages/core/src/material/PBRMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/PBRMaterial.ts#L380-L381

Added lines #L380 - L381 were not covered by tests

Check warning on line 390 in packages/core/src/material/PBRMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/PBRMaterial.ts#L384-L390

Added lines #L384 - L390 were not covered by tests

Check warning on line 405 in packages/core/src/material/PBRMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/PBRMaterial.ts#L401-L405

Added lines #L401 - L405 were not covered by tests

Check warning on line 413 in packages/core/src/material/PBRMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/PBRMaterial.ts#L412-L413

Added lines #L412 - L413 were not covered by tests

Check warning on line 418 in packages/core/src/material/PBRMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/PBRMaterial.ts#L416-L418

Added lines #L416 - L418 were not covered by tests

Check warning on line 426 in packages/core/src/material/PBRMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/PBRMaterial.ts#L425-L426

Added lines #L425 - L426 were not covered by tests

Check warning on line 438 in packages/core/src/material/PBRMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/PBRMaterial.ts#L429-L438

Added lines #L429 - L438 were not covered by tests

Check warning on line 446 in packages/core/src/material/PBRMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/PBRMaterial.ts#L445-L446

Added lines #L445 - L446 were not covered by tests

Check warning on line 455 in packages/core/src/material/PBRMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/PBRMaterial.ts#L449-L455

Added lines #L449 - L455 were not covered by tests

Check warning on line 500 in packages/core/src/material/PBRMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/PBRMaterial.ts#L497-L500

Added lines #L497 - L500 were not covered by tests

Check warning on line 512 in packages/core/src/material/PBRMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/PBRMaterial.ts#L506-L512

Added lines #L506 - L512 were not covered by tests

Check warning on line 525 in packages/core/src/material/PBRMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/PBRMaterial.ts#L519-L525

Added lines #L519 - L525 were not covered by tests

Check warning on line 532 in packages/core/src/material/PBRMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/PBRMaterial.ts#L531-L532

Added lines #L531 - L532 were not covered by tests

Check warning on line 538 in packages/core/src/material/PBRMaterial.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/core/src/material/PBRMaterial.ts#L537-L538

Added lines #L537 - L538 were not covered by tests

Check warning on line 20 in packages/loader/src/gltf/extensions/KHR_materials_transmission.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/loader/src/gltf/extensions/KHR_materials_transmission.ts#L10-L20

Added lines #L10 - L20 were not covered by tests

Check warning on line 32 in packages/loader/src/gltf/extensions/KHR_materials_volume.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/loader/src/gltf/extensions/KHR_materials_volume.ts#L12-L32

Added lines #L12 - L32 were not covered by tests