-
Notifications
You must be signed in to change notification settings - Fork 3
Fill code coverage gaps #214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just a couple of very minor issues that you can quickly fix
test/tformat.m
Outdated
|
|
||
| methods (TestMethodSetup) | ||
| function setup(testCase) | ||
| config = fullfile(fileparts(mfilename("fullpath")), "config", "otelcol_config.yml"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the default configuration file. You don't need to specify it here. Simply call commonSetup without passing in the configuration and you will get the default.
|
|
||
| value = 30; | ||
| result = opentelemetry.metrics.ObservableResult; | ||
| result = result.observe(value, dictionary({"Level1"}, {"D"},{"Level2"},{"E"})); No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you really need cell arrays of strings in the dictionary? Can you avoid using cell arrays:
dictionary("Level1", "D", "Level2", "E")
test/thttpheaders.m
Outdated
|
|
||
| methods (TestMethodSetup) | ||
| function setup(testCase) | ||
| config = fullfile(fileparts(mfilename("fullpath")), "config", "otelcol_config.yml"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to supply the default configuration.
test/tjsonbytesmapping.m
Outdated
|
|
||
| methods (TestMethodSetup) | ||
| function setup(testCase) | ||
| config = fullfile(fileparts(mfilename("fullpath")), "config", "otelcol_config.yml"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to supply default configurations.
test/ttimeout.m
Outdated
|
|
||
| methods (TestMethodSetup) | ||
| function setup(testCase) | ||
| config = fullfile(fileparts(mfilename("fullpath")), "config", "otelcol_config.yml"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default config not needed.
test/tusejsonname.m
Outdated
|
|
||
| methods (TestMethodSetup) | ||
| function setup(testCase) | ||
| config = fullfile(fileparts(mfilename("fullpath")), "config", "otelcol_config.yml"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default configuration not needed
Added some test cases addressing some of the larger code coverage gaps in the codebase.