Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
在寫單元測試時,會把很多元件進行隔離,Goz 沒有隔離的能力,這裡又很喜歡用Goz,但是這個我無法寫單元測試
比如一個程式是有二個主程式A B組成時,這時會發生一個狀況,當A程式更改時,會造成B程式的單元測試瓦解。當B程式更改時,會造成A程式的單元測試故障,所以在單元測試時,隔離的能力對我來說是很重要
我對Goz程式進行最小幅度的更改,並自己寫一個單元測試去證明這個修改方式可以增強 Goz 的單元測試的能力,謝謝