fix(fls): read and write a network card's wireless flag
A notebook that joins a switch's wireless network has its card marked wireless (NetzwerkInterface.setWireless, Betriebssystem.wireless()), next to the wireless cable. The reader did not read it, the writer did not write it, and the Java oracle did not report it, so the Java-against-Java writer test could not see the loss. Found while exporting the editor model: the corpus has 18 wireless cards, one at each wireless cable. The oracle now reports `wireless` per interface; FlsInterface has it; the writer sets it. The synthetic topology has a wireless card; a mutation probe that drops it is caught by Java. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -31,6 +31,8 @@ export interface FlsInterface {
|
||||
mac: string | undefined;
|
||||
gateway: string | null;
|
||||
dns: string | null;
|
||||
/** A notebook's or PC's card joining a switch's wireless network (Betriebssystem.wireless). */
|
||||
wireless: boolean;
|
||||
}
|
||||
|
||||
export interface FlsNode {
|
||||
@@ -270,6 +272,7 @@ class Reader {
|
||||
mac: undefined,
|
||||
gateway: '',
|
||||
dns: '',
|
||||
wireless: false,
|
||||
};
|
||||
if (!isJavaObject(nic)) return result;
|
||||
// Only the constructor's own interface gets the WAN address; one the file
|
||||
@@ -302,6 +305,9 @@ class Reader {
|
||||
if (typeof value === 'string' || value === null) result[field] = value;
|
||||
else this.unexpected(at, property, value);
|
||||
}
|
||||
const wireless = nic.properties.get('wireless');
|
||||
if (typeof wireless === 'boolean') result.wireless = wireless;
|
||||
else if (wireless !== undefined) this.unexpected(at, 'wireless', wireless);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user