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: char.rs
    path of file: ./repos/kuasar/vmm/sandbox/src/stratovirt/devices
    
    the code of the file until where you have to start completion: /*
Copyright 2022 The Kuasar Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy
    
    fn test_char_device_params() {
        let char_device = CharDevice::new(
            "socket",
            "charconsole0",
            "/run/vc/vm/sandbox-id/console.sock",
        );
        let char_device_cmd_params = char_device.to_cmdline_params("-");
        println!("chardev device params: {:?}", char_device_cmd_params);

        let expected_params: Vec<String> = vec![
            "-chardev",
            "socket,id=charconsole0,path=/run/vc/vm/sandbox-id/console.sock,server,nowait",
        ]
        .iter()
        .map(|s| s.to_string())
        .collect();

        assert_eq!(expected_params, char_device_cmd_params);
    }