Analysis hints for assertj: assertThat does not modify its argument
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Start with the existing libs/test (JUnit Jupiter) hints as the model: follow how it is wired through a compile dependency in maddi-aapi-archive, an entry in CompileAnalysisHints.LIBRARIES, and one in LoadAnalysisResults.ANALYZED_RESULTS. The annotation targets are the assertThat*/then* entry points of org.assertj.core.api.Assertions, WithAssertions and BDDAssertions. Done when the argument of those methods is marked @NotModified and the langchain4j-core fields named in the issue (UserMessage.contents, ChatRequest.messages, AiMessage.toolExecutionRequests) are no longer reported as modified.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
AssertJ has no hints. An unannotated library parameter defaults to modified, so every assertThat(x) in a project's test code makes x modified. Through the reachability pass's shared callee-parameter node, that reaches the fields and parameters behind every argument passed there.
Measured on langchain4j-core (CodeLaser/maddi-mod#24): UserMessage.contents, ChatRequest.messages and AiMessage.toolExecutionRequests are modified only because tests pass them to WithAssertions.assertThat(List) / Assertions.assertThat(List).
Minimum: @NotModified on the argument of the assertThat*/then* entry points of org.assertj.core.api.Assertions, WithAssertions and BDDAssertions. Better: the Abstract*Assert methods, which read the actual value. Like libs/test (JUnit Jupiter), this needs a compile dependency in maddi-aapi-archive, an entry in CompileAnalysisHints.LIBRARIES and one in LoadAnalysisResults.ANALYZED_RESULTS.
- Ngôn ngữ chính
- Java
- Star
- 1
- Fork
- 1
- Merge trung bình
- 1 giờ 58 phút
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CodeLaser/maddi
-
build/ci good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
bug front-end:javac
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
C# printer: an inner class of a generic class needs the outer type's arguments (Outer<A>.Inner)Đang mởfront-end:csharp
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
-
Java → C# translation: an idiomatic C# printer driven by the modification and nullability analysesĐang mởenhancement extension front-end:csharp
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 8/100
Tất cả issue của CodeLaser/maddi
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
apache/rocketmq-dashboard#6896 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
OpenIntegrationEngine/engine#496 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
SasanLabs/VulnerableApp#836 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Albertinesilva/backend-engineering-journey-java-springboot#46 ·
-
Snyk: vulnerabilities in jackson-databind 2.21.5Có thể đã có người làm @harrywu23 đã nhận hôm nay. Đang mởbug
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 80/100
SOFTENG-310-Group-4/Project-A1-310-Group-4#115 ·
Maintainer thường phản hồi trong vòng 1 ngày