# Associating Code With Tests

SeaLights intelligently maps tests to their corresponding code sections, enabling efficient test selection. Here are the three primary methods employed:

### **Statistical Modeling**

* Leverages **machine learning** to analyze each test's impact on code during parallel testing.
* Gradually refines code-to-test mapping for **increasing accuracy and efficiency** over time.

### **One-to-One Mapping (with OpenTelemetry)**

* Uses **OpenTelemetry instrumentation** to capture data on every application operation.
* Precisely maps tests to code methods based on **comprehensive request tracking** throughout your system.

### **Calibration (with Sequential Testing)**

* Employs **sequential testing** to simulate one-to-one mapping results.
* Offers **immediate and accurate mapping** but can be time-consuming compared to other methods.

***

{% content-ref url="associating-code-with-tests/statistical-modeling" %}
[statistical-modeling](https://docs.sealights.io/knowledgebase/test-optimization/how-it-works/associating-code-with-tests/statistical-modeling)
{% endcontent-ref %}

{% content-ref url="associating-code-with-tests/one-to-one-mapping" %}
[one-to-one-mapping](https://docs.sealights.io/knowledgebase/test-optimization/how-it-works/associating-code-with-tests/one-to-one-mapping)
{% endcontent-ref %}

{% content-ref url="associating-code-with-tests/calibration" %}
[calibration](https://docs.sealights.io/knowledgebase/test-optimization/how-it-works/associating-code-with-tests/calibration)
{% endcontent-ref %}

{% file src="<https://1255034336-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxSagdStwf6CJ9cI6lA68%2Fuploads%2FwvsVAznL8rI5ME0GkBim%2FTIA%20Test%20to%20Code%20Mapping.pdf?alt=media&token=052c0a91-6f4f-46ed-bc3f-20ca3b328750>" %}
