Skip to content
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

Generate tests for function with incomplete return type #175

Open
operasfantom opened this issue Apr 19, 2022 · 0 comments · May be fixed by #192
Open

Generate tests for function with incomplete return type #175

operasfantom opened this issue Apr 19, 2022 · 0 comments · May be fixed by #192
Assignees
Labels
enhancement New feature or request

Comments

@operasfantom
Copy link
Collaborator

Steps to reproduce

  1. Open and configure project coreutils
  2. Choose target libcoreutils.a
  3. Generate tests for file gl/lib/randperm.c
  4. See comment in tests
// Function 'sparse_new' was skipped, as return type 'struct hash_table *' is not fully supported: Base type of array or pointer

Source code

static sparse_map *
sparse_new (size_t size_hint)
{
  return hash_initialize (size_hint, NULL, sparse_hash_, sparse_cmp_, free);
}

Note

However, it is still possible to check the return pointer for null (not for its value)

@operasfantom operasfantom added the enhancement New feature or request label Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

2 participants