# Code coverage report for src/lib/services/local-user/local-user.service.mock.ts

# All files / src/lib/services/local-user local-user.service.mock.ts

61.76% Statements 21/34
45.45% Branches 10/22
21.42% Functions 6/28
57.14% Lines 16/28

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    1001x
    1x
    1x
    1x
    1x

    1x

    7x
    7x
    7x
    7x
    7x
    7x
    7x
    7x

    1x
    1x

     import { Injectable } from '@angular/core';
    import { Observable, BehaviorSubject } from 'rxjs';
    impoIrt { Publisher } from 'openvidu-browser/lib/OpenVidu/Publisher';
    import { UserModel } from '../../models/user.model';

    @Injectable({
    	providedIn: 'root'
    })
    export class LocalUserServiceMock {
    	OVUsers: Observable<UserModel[]>;
    	screenShareState: Observable<boolean>;
    	webcamVideoActive: Observable<boolean>;
    	private _OVUsers = <BehaviorSubject<UserModel[]>>new BehaviorSubject([]);
    	private _screenShareState = <BehaviorSubject<boolean>>new BehaviorSubject(false);
    	private _webcamVideoActive = <BehaviorSubject<boolean>>new BehaviorSubject(true);
    	private webcamUser: UserModel = null;
    	private screenUser: UserModel = null;

    	constructor() {
    		this.OVUsers = this._OVUsers.asObservable();
    		this.screenShareState = this._screenShareState.asObservable();
    		this.webcamVideoActive = this._webcamVideoActive.asObservable();
    	}

    	initialize() {}

    	getWebcamPublisher(): Publisher {
    		return null;
    	}

    	setWebcamPublisher(publisher: Publisher) {}

    	getScreenPublisher(): Publisher {
    		return null;
    	}

    	setScreenPublisher(publisher: Publisher) {}

    	enableWebcamUser() {}

    	disableWebcamUser() {}

    	enableScreenUser(screenPublisher: Publisher) {}

    	disableScreenUser() {}

    	updateUsersStatus() {}

    	clear() {}

    	isWebCamEnabled(): boolean {
    		return false;
    	}

    	isOnlyScreenConnected(): boolean {
    		return false;
    	}

    	hasWebcamVideoActive(): boolean {
    		return false;
    	}

    	hasWebcamAudioActive(): boolean {
    		return false;
    	}

    	hasScreenAudioActive(): boolean {
    		return false;
    	}

    	areBothConnected(): boolean {
    		return false;
    	}

    	isOnlyWebcamConnected(): boolean {
    		return false;
    	}

    	isScreenShareEnabled(): boolean {
    		return false;
    	}

    	updateUsersNickname(nickname: string) {}

    	getWebcamAvatar(): string {
    		return '';
    	}

    	getWebcamUserName(): string {
    		return '';
    	}

    	getScreenUserName() {}

    	resetUsersZoom() {}

    	toggleZoom(connectionId: string) {}
    }