• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stanford-oval / thingpedia-api / 549

pending completion
549

push

travis-ci-com

gcampax
v2.9.0-alpha.1

536 of 777 branches covered (68.98%)

Branch coverage included in aggregate %.

1396 of 1713 relevant lines covered (81.49%)

10.11 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

55.56
/lib/messaging.js
1
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*-
2
//
3
// This file is part of Thingpedia
4
//
5
// Copyright 2016-2019 The Board of Trustees of the Leland Stanford Junior University
6
//
7
// Licensed under the Apache License, Version 2.0 (the "License");
8
// you may not use this file except in compliance with the License.
9
// You may obtain a copy of the License at
10
//
11
//    http://www.apache.org/licenses/LICENSE-2.0
12
//
13
// Unless required by applicable law or agreed to in writing, software
14
// distributed under the License is distributed on an "AS IS" BASIS,
15
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
// See the License for the specific language governing permissions and
17
// limitations under the License.
18
//
19
// Author: Giovanni Campagna <gcampagn@cs.stanford.edu>
20

21

22
import * as events from 'events';
1✔
23

24
import RefCounted from './helpers/ref_counted';
1✔
25

26
export class MessagingFeed extends RefCounted {
1✔
27
    // events: new-message, incoming-message, outgoing-message, members-changed
28

29
    constructor(feedId) {
30
        super();
×
31

32
        this.feedId = feedId;
×
33
    }
34

35
    /* istanbul ignore next */
36
    _doOpen() {
37
        throw new Error('Not Implemented');
38
    }
39

40
    /* istanbul ignore next */
41
    _doClose() {
42
        throw new Error('Not Implemented');
43
    }
44

45
    /* istanbul ignore next */
46
    sendText() {
47
        throw new Error('Not Implemented');
48
    }
49

50
    /* istanbul ignore next */
51
    sendItem() {
52
        throw new Error('Not Implemented');
53
    }
54

55
    /* istanbul ignore next */
56
    sendRaw() {
57
        throw new Error('Not Implemented');
58
    }
59
}
60

61
export default class Messaging extends events.EventEmitter {
1✔
62
    constructor() {
63
        super();
×
64
    }
65

66
    get isAvailable() {
67
        return false;
×
68
    }
69

70
    /* istanbul ignore next */
71
    get account() {
72
        throw new Error('Not Implemented');
73
    }
74

75
    /* istanbul ignore next */
76
    getIdentities() {
77
        throw new Error('Not Implemented');
78
    }
79

80
    /* istanbul ignore next */
81
    getFeedList() {
82
        throw new Error('Not Implemented');
83
    }
84

85
    /* istanbul ignore next */
86
    getFeed(feedId) {
87
        throw new Error('Not Implemented');
88
    }
89

90
    /* istanbul ignore next */
91
    getFeedWithContact(contactId) {
92
        throw new Error('Not Implemented');
93
    }
94

95
    /* istanbul ignore next */
96
    searchAccountByName(name) {
97
        throw new Error('Not Implemented');
98
    }
99

100
    /* istanbul ignore next */
101
    getAccountForIdentity(identity) {
102
        throw new Error('Not Implemented');
103
    }
104
}
105
Messaging.Feed = MessagingFeed;
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2024 Coveralls, Inc