Skip to content

Commit ba0b6eb

Browse files
committed
Translate oneshot coverage
1 parent 5328e69 commit ba0b6eb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ko/news/_posts/2018-11-06-ruby-2-6-0-preview3-released.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ JIT 컴파일을 사용하려면 `--jit` 옵션을 커맨드라인이나 `$RUBYO
7878
가지는 메모리 객체들을 관리합니다. 예를 들어 작고 짧게 생존하는 Hash 객체는
7979
2배 빨라집니다. rdoc 벤치마크에서 6-7% 의 성능 향상을 확인했습니다.
8080

81-
* Coverageoneshot_lines モードの追加 [Feature#15022]
82-
* This mode checks "whether each line was executed at least once or not", instead of "how many times each line was executed". A hook for each line is fired at most once, and after it is fired the hook flag is removed, i.e., it runs with zero overhead.
83-
* Add +:oneshot_lines+ keyword argument to Coverage.start.
84-
* Add +:stop+ and +:clear+ keyword arguments to Coverage.result. If +clear+ is true, it clears the counters to zero. If +stop+ is true, it disables coverage measurement.
85-
* Coverage.line_stub, which is a simple helper function that creates the "stub" of line coverage from a given source code.
81+
* `Coverage`oneshot_lines 모드 추가. [Feature#15022]
82+
* 이 모드는 "각 줄이 몇 번 실행되었는지" 대신 "각 줄이 한번 이상 실행되었는지"를 확인합니다. 각 줄의 훅은 최대 1회만 실행되며, 실행된 후에는 플래그를 제거하기 때문에 오버헤드 없이 실행됩니다.
83+
* `Coverage.start` +:oneshot_lines+ 키워드 인수가 추가됩니다.
84+
* `Coverage.result` +:stop++:clear+ 키워드 인수가 추가됩니다. 만약 +clear+가 참이라면, 이는 카운터를 0으로 초기화합니다. 만약 +stop+이 참이라면 커버리지 측정을 비활성화합니다.
85+
* 주어진 소스 코드로부터 "stub"을 생성하는 간단한 헬퍼 함수인 `Coverage.line_stub`을 추가합니다.
8686

8787
## 2.5 이후 주목할 만한 변경
8888

0 commit comments

Comments
 (0)