diff options
| author | to-s <tobias.weber@enisyst.de> | 2020-10-19 12:38:51 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-19 18:38:51 +0200 |
| commit | 771d246a96cd476fa9fddf600c532a28b2efd93a (patch) | |
| tree | bd03b4bdec9a6a5bb85baca7ca7d988cde64fe95 /src/test/CppTests/TestSetup.ts | |
| parent | d629202dd9419569c109475ad9f10405d8ab0d22 (diff) | |
| download | doxdocgen-771d246a96cd476fa9fddf600c532a28b2efd93a.tar.gz | |
Substitute author and email by git config (#186)
* Substitute author and email by git config
* Upgraded version of typescript
Due to https://github.com/cschlosser/doxdocgen/pull/186#discussion_r505813068
* Moved to CppDocGen.generateAuthorTag()
Due to https://github.com/cschlosser/doxdocgen/pull/186#discussion_r505819542
* Update README.md
Due to https://github.com/cschlosser/doxdocgen/pull/186#discussion_r505822908
* Update TestSetup.ts
* Added tests
* Changed return type to string
Due to https://ci.appveyor.com/project/cschlosser/doxdocgen/builds/35818180#L566
Co-authored-by: Christoph Schlosser <2466365+cschlosser@users.noreply.github.com>
Diffstat (limited to 'src/test/CppTests/TestSetup.ts')
| -rw-r--r-- | src/test/CppTests/TestSetup.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/CppTests/TestSetup.ts b/src/test/CppTests/TestSetup.ts index ad733dd..e38ae91 100644 --- a/src/test/CppTests/TestSetup.ts +++ b/src/test/CppTests/TestSetup.ts @@ -4,6 +4,7 @@ import CodeParser from "../../Common/ICodeParser"; import { IDocGen } from "../../Common/IDocGen"; import { Config } from "../../Config"; import * as myExtension from "../../extension"; +import GitConfig from "../../GitConfig"; import CppParser from "../../Lang/Cpp/CppParser"; import MockDocument from "../tools/MockDocument"; import MockEditor from "../tools/MockEditor"; @@ -14,9 +15,11 @@ import MockSelection from "../tools/MockSelection"; export default class TestSetup { public cfg: Config; public firstLine: number; + public gitConfig: GitConfig; private editor: MockEditor; constructor(method: string) { + this.gitConfig = new GitConfig(); this.cfg = new Config(); this.firstLine = 0; this.SetLine(method); @@ -58,7 +61,7 @@ export default class TestSetup { const gen: IDocGen = parser.Parse(this.editor); // tslint:disable-next-line:max-line-length - gen.GenerateDoc(new vscode.Range(new vscode.Position(this.firstLine, 0), new vscode.Position(this.firstLine, 0))); + gen.GenerateDoc(new vscode.Range(new vscode.Position(this.firstLine, 0), new vscode.Position(this.firstLine, 0)), this.gitConfig); return this.editor.editBuilder.text; } |