You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: sriov.rs
    path of file: ./repos/nmstate/rust/src/lib/unit_tests
    
    the code of the file until where you have to start completion: // SPDX-License-Identifier: Apache-2.0

use crate::{
    state::get_json_value_difference, unit_tests::testlib::new_eth_iface,
    BridgePortVlanMode, ErrorKind, EthernetConfig, EthernetDuplex, Interface,
    InterfaceType, Interfaces, MergedInterfaces, NetworkState, SrIovConfig,
    SrIovVfConfig,
};

#[test]
fn test_sriov_vf_mac_mix_case() {
    let mut pre_apply_cur_ifaces = Interfaces::new();
    pre_apply_cur_ifaces.push(new_eth_iface("eth1"));

    let mut cur_ifaces = Interfaces::new();
    let mut cur_iface = new_eth_iface("eth1");
    if let Interface::Ethernet(ref mut eth_iface) = cur_iface {
        let mut eth_conf = EthernetConfig::new();
        let mut sriov_conf = SrIovConfig::new();
        let mut vf_conf = SrIovVfConfig::new();
        vf_conf.id = 0;
        vf_conf.
    
fn test_has_sriov_and_missing_eth() {
    let desired = serde_yaml::from_str::<NetworkState>(
        r"---
        interfaces:
        - name: eth1
          type: ethernet
          state: up
          ethernet:
            speed: 10000
            duplex: full
            auto-negotiation: false
            sr-iov:
              total-vfs: 2
        - name: eth1v0
          type: ethernet
          state: up
        - name: eth1v1
          type: ethernet
          state: up
        ",
    )
    .unwrap();
    let current = serde_yaml::from_str::<NetworkState>(
        r"---
        interfaces:
        - name: eth1
          type: ethernet
          state: up
          ethernet:
            speed: 10000
            duplex: full
            auto-negotiation: false
            sr-iov:
              total-vfs: 0
        ",
    )
    .unwrap();

    assert!(desired.has_sriov_and_missing_eth(&current));
}