Skip to content

Commit

Permalink
Merge pull request github#28737 from github/repo-sync
Browse files Browse the repository at this point in the history
Repo sync
  • Loading branch information
docs-bot authored Oct 2, 2023
2 parents be21359 + 11137f3 commit 1f0a5f8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
title: About GitHub Copilot Chat
intro: '{% data variables.product.prodname_copilot_chat %} can help you by providing answers to coding related questions directly within a supported IDE.'
redirect_from:
- /early-access/copilot/github-copilot-chat-transparency-note
- /early-access/copilot/github-copilot-chat-technical-preview-license-terms
product: '{% data reusables.gated-features.copilot-chat %}'
versions:
feature: copilot
Expand Down Expand Up @@ -42,7 +45,7 @@ The response generated by {% data variables.product.prodname_copilot_chat_short
### Generating unit test cases

{% data variables.product.prodname_copilot_chat_short %} can help write unit test cases by generating code snippets based on the code open in the editor or the code snippet you highlight in the editor. This may help you write test cases without spending as much time on repetitive tasks. For example, if you are writing a test case for a specific function, you can use {% data variables.product.prodname_copilot_chat_short %} to suggest possible input parameters and expected output values based on the function's signature and body. {% data variables.product.prodname_copilot_chat_short %} can also suggest assertions that ensure the function is working correctly, based on the code's context and semantics.

{% data variables.product.prodname_copilot_chat_short %} can also help you write test cases for edge cases and boundary conditions that might be difficult to identify manually. For instance, {% data variables.product.prodname_copilot_chat_short %} can suggest test cases for error handling, null values, or unexpected input types, helping you ensure your code is robust and resilient. However, it is important to note that generated test cases may not cover all possible scenarios, and manual testing and code review are still necessary to ensure the quality of the code. For more information on generating unit test cases, see "[Asking {% data variables.product.prodname_copilot_chat %} questions about your code](/copilot/github-copilot-chat/using-github-copilot-chat#asking-github-copilot-chat-questions-about-your-code)."

### Explaining code
Expand Down

0 comments on commit 1f0a5f8

Please sign in to comment.