Showing 1 of 42 files from the diff.
Other files ignored by Codecov
tests/tcp.c has changed.
CMakeLists.txt has changed.
tests/errors.c was deleted.
tests/sock.c was deleted.

@@ -1,5 +1,5 @@
Loading
1 1
//
2 -
// Copyright 2018 Staysail Systems, Inc. <info@staysail.tech>
2 +
// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
3 3
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
4 4
//
5 5
// This software is supplied under the terms of the MIT License, a
@@ -323,15 +323,12 @@
Loading
323 323
char *
324 324
nni_plat_join_dir(const char *prefix, const char *suffix)
325 325
{
326 -
	char * newdir;
327 -
	size_t len;
326 +
	char *result;
328 327
329 -
	len    = strlen(prefix) + strlen(suffix) + 2;
330 -
	newdir = nni_alloc(strlen(prefix) + strlen(suffix) + 2);
331 -
	if (newdir != NULL) {
332 -
		(void) snprintf(newdir, len, "%s/%s", prefix, suffix);
328 +
	if (nni_asprintf(&result, "%s/%s", prefix, suffix) == 0) {
329 +
		return (result);
333 330
	}
334 -
	return (newdir);
331 +
	return (NULL);
335 332
}
336 333
337 334
#endif // NNG_PLATFORM_POSIX
338 335
imilarity index 100%
339 336
ename from tests/resolv.c
340 337
ename to src/platform/resolver_test.c
Files Coverage
src 80.24%
tools/nngcat/nngcat.c 56.33%
Project Totals (88 files) 79.48%
1
ignore:
2
 - "tests"
3
 - "perf"
4
 - "**/*_test.c"
5
coverage:
6
 range: 50..95
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading