Skip to content

Commit 321c9f4

Browse files
committed
Fix go tests
1 parent 7936e6a commit 321c9f4

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

src/SDK/Language/Go.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,6 @@ public function getFiles(): array
108108
*/
109109
public function getTypeName(array $parameter, array $spec = []): string
110110
{
111-
if (isset($parameter['enumName'])) {
112-
return \ucfirst($parameter['enumName']);
113-
}
114-
if (!empty($parameter['enumValues'])) {
115-
return \ucfirst($parameter['name']);
116-
}
117111
return match ($parameter['type']) {
118112
self::TYPE_INTEGER => 'int',
119113
self::TYPE_NUMBER => 'float64',

tests/Go112Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ class Go112Test extends Base
1717
];
1818
protected string $command =
1919
'docker run --rm -v $(pwd):/app -w /app golang:1.12 sh -c "cd tests/languages/go/ && ./test.sh"';
20+
2021
protected array $expectedOutput = [
2122
...Base::FOO_RESPONSES,
2223
...Base::BAR_RESPONSES,
2324
...Base::GENERAL_RESPONSES,
2425
...Base::DOWNLOAD_RESPONSES,
25-
...Base::ENUM_RESPONSES,
2626
...Base::EXCEPTION_RESPONSES,
2727
];
2828
}

tests/Go118Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ class Go118Test extends Base
1717
];
1818
protected string $command =
1919
'docker run --rm -v $(pwd):/app -w /app golang:1.18 sh -c "cd tests/languages/go/ && ./test.sh"';
20+
2021
protected array $expectedOutput = [
2122
...Base::FOO_RESPONSES,
2223
...Base::BAR_RESPONSES,
2324
...Base::GENERAL_RESPONSES,
2425
...Base::DOWNLOAD_RESPONSES,
25-
...Base::ENUM_RESPONSES,
2626
...Base::EXCEPTION_RESPONSES,
2727
];
2828
}

0 commit comments

Comments
 (0)