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

optlib: allow users to set fields and check extras defined in a foreign language #3960

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

masatake
Copy link
Member

In addition, this pull request allows you to fill out a field for a foreign tag from optscript.

Copy link

codecov bot commented Mar 14, 2024

Codecov Report

Attention: Patch coverage is 89.43089% with 13 lines in your changes missing coverage. Please review.

Project coverage is 85.52%. Comparing base (e9daadb) to head (c50fcca).

Files with missing lines Patch % Lines
main/field.c 83.67% 8 Missing ⚠️
main/parse.c 93.93% 2 Missing ⚠️
main/script.c 93.93% 2 Missing ⚠️
main/options.c 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3960      +/-   ##
==========================================
+ Coverage   85.50%   85.52%   +0.01%     
==========================================
  Files         237      237              
  Lines       57042    57143     +101     
==========================================
+ Hits        48776    48869      +93     
- Misses       8266     8274       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@masatake masatake marked this pull request as draft March 14, 2024 23:51
@masatake masatake force-pushed the main--foreign-fields branch 2 times, most recently from e14c4e6 to cbdc8c8 Compare March 15, 2024 03:29
@masatake
Copy link
Member Author

The ways to support boolean fields are not consistent in various aspects.

@masatake
Copy link
Member Author

f3246a2 and 1f073fc can be cherry-pick'ed.

@masatake
Copy link
Member Author

We can merge c428bd3 ... 9b3f25f.

d15cc30 needs a test case.

@masatake
Copy link
Member Author

I added test cases. The top half of this pull request can be merged. I will make a pull request.

…for newly defined field

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
--_list-fielddef-flags option is added, too.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
…field setters

This is a preparation. A test case for raising the error introduced in
this commit will be added when we have real field accessors.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
The operators (setter and/or getter) for each field.
The name of operatos has following form:

	setter => :<LANG>.<FIELD>
	getter => <LANG>.<FIELD>:

NOTE: The operators for a field are defined only if the
field has C level getters and setters, getValueObject and setValueObject
in fieldDefinition. This commit doesn't provide a getter and a setter.
The test cases and the real accessor will be implemented later.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
…ned in an optlib parser

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant