-
Notifications
You must be signed in to change notification settings - Fork 4
publisher による構成に修正(Trying Test) #53
base: develop
Are you sure you want to change the base?
Conversation
Review status: 0 of 13 files reviewed at latest revision, 1 unresolved discussion. test/publisher.test.js, line 28 at r1 (raw file):
まず、ここが呼ばれるかを callback の中でテストすると良いかも。 This callback function should be called. 的な。 Comments from Reviewable |
Review status: 0 of 13 files reviewed at latest revision, 1 unresolved discussion. test/publisher.test.js, line 28 at r1 (raw file):
Comments from Reviewable |
Review status: 0 of 22 files reviewed at latest revision, 16 unresolved discussions. commandRunner.js, line 68 at r2 (raw file):
this.loopTimeoutId が null になる箇所がなさそうなので、毎回ここ呼ばれてしまいませんか? commandRunner.js, line 76 at r2 (raw file):
ここも同様かな? commandRunner.js, line 93 at r2 (raw file):
この 1000 はもう少し細かく動かしたいなどの調整のために、どこかコンフィグをまとめているようなところに出しておきたいですね。 componentBase.js, line 9 at r2 (raw file):
author の null チェックはどんな意味がありますか? controllerManager.js, line 21 at r2 (raw file):
この 100 も変数化してどこかに置いておきたいですね。MAX_HP 的な感じで。 controllerManager.js, line 73 at r2 (raw file):
-10 も変数化したいでですね。 controllerManager.js, line 82 at r2 (raw file):
他のところもそうですけど null だった場合に何かしらログを残します? console.warn とかで。 main.js, line 136 at r2 (raw file):
エラーは console.error とか使ったら? publisher.js, line 6 at r2 (raw file):
publisher.js, line 13 at r2 (raw file):
同じく spheroServerManager.js, line 31 at r2 (raw file):
white も変数にー virtualSpheroManager.js, line 16 at r2 (raw file):
controllerModel に対して key と name の登録とかいらない? test/componentBase.test.js, line 27 at r2 (raw file):
このテストの意味がちょっと良くわからないっすー test/dashboard.test.js, line 35 at r2 (raw file):
100 通っちゃうテストですねwこれから? test/virtualSpheroManager.test.js, line 9 at r2 (raw file):
2つの assert に分けましょう Comments from Reviewable |
Review status: 0 of 22 files reviewed at latest revision, 16 unresolved discussions. commandRunner.js, line 68 at r2 (raw file): Previously, dadaa wrote…
最初、コマンドが呼ばれていないときは、初期値として null が入っているので、 commandRunner.js, line 76 at r2 (raw file): Previously, dadaa wrote…
これは空っぽにします commandRunner.js, line 93 at r2 (raw file): Previously, dadaa wrote…
わかりました。 config.js があって、そこでポートの調整などをしているので、 componentBase.js, line 9 at r2 (raw file): Previously, dadaa wrote…
自分で publish したイベントを、自分でsubscribe で受け取らないようにしています。 そうしないと、socket に送るとき、socket から送られてきたデータを送り返すみたいになっちゃうんです・・ Comments from Reviewable |
Review status: 0 of 22 files reviewed at latest revision, 16 unresolved discussions. controllerManager.js, line 21 at r2 (raw file): Previously, dadaa wrote…
config.js で行きますー controllerManager.js, line 73 at r2 (raw file): Previously, dadaa wrote…
これも config.js で行きますー controllerManager.js, line 82 at r2 (raw file): Previously, dadaa wrote…
うーん、この場合は client がないという状態なのですが、 そこまでのエラーでないときだから、 console.warn にすることにしますw main.js, line 136 at r2 (raw file): Previously, dadaa wrote…
あーー、これは土曜日急いだやつでした publisher.js, line 6 at r2 (raw file): Previously, dadaa wrote…
わかりました publisher.js, line 13 at r2 (raw file): Previously, dadaa wrote…
わかりました spheroServerManager.js, line 31 at r2 (raw file): Previously, dadaa wrote…
config.js でいきやす virtualSpheroManager.js, line 16 at r2 (raw file): Previously, dadaa wrote…
その処理は controllerManager のほうで行っているのですが、どうでしょう、それでいいですか? Comments from Reviewable |
Review status: 0 of 22 files reviewed at latest revision, 16 unresolved discussions. test/componentBase.test.js, line 27 at r2 (raw file): Previously, dadaa wrote…
あ、、、 test/dashboard.test.js, line 35 at r2 (raw file): Previously, dadaa wrote…
そうっすねww dashboard.publishPingAll したら subscribe してた関数が呼ばれるかをチェックしたかったのですが、 test/virtualSpheroManager.test.js, line 9 at r2 (raw file): Previously, dadaa wrote…
わかりました。 Comments from Reviewable |
Review status: 0 of 22 files reviewed at latest revision, 16 unresolved discussions. test/componentBase.test.js, line 27 at r2 (raw file): Previously, shundroid wrote…
あ、いや、subscribe 側であってました 「コールバックが呼ばれなかったらOK」というテストをしたいんですけど、 Comments from Reviewable |
Review status: 0 of 25 files reviewed at latest revision, 16 unresolved discussions. commandRunner.js, line 93 at r2 (raw file): Previously, shundroid wrote…
@dadaa 今気づいたのですが、これって controller 側から指定された秒数を Comments from Reviewable |
Review status: 0 of 33 files reviewed at latest revision, 16 unresolved discussions. commandRunner.js, line 93 at r2 (raw file): Previously, shundroid wrote…
逆にいうと、controller から渡す値を ms にするのが良いかと思います。 commandRunner.js, line 67 at r3 (raw file):
commandRunner.js, line 76 at r3 (raw file):
同様です Comments from Reviewable |
Review status: 0 of 33 files reviewed at latest revision, 12 unresolved discussions. orbController.js, line 126 at r3 (raw file):
この間のように、このコンフィグは結構キモになるので、これも config.js などに書いておきましょう。 Comments from Reviewable |
Review status: 0 of 33 files reviewed at latest revision, 9 unresolved discussions. virtualSpheroManager.js, line 16 at r2 (raw file): Previously, shundroid wrote…
そしたら、ここはすべて name だけを扱うようにしたらいかがかしら? Comments from Reviewable |
Review status: 0 of 33 files reviewed at latest revision, 10 unresolved discussions. model/uuidModel.js, line 12 at r3 (raw file):
このコメントは何かしら? Comments from Reviewable |
Review status: 0 of 33 files reviewed at latest revision, 11 unresolved discussions. test/commandRunner.test.js, line 7 at r3 (raw file):
なるべく、1000 とかは定数化しておきたいです。 Comments from Reviewable |
Review status: 0 of 33 files reviewed at latest revision, 11 unresolved discussions. test/componentBase.test.js, line 27 at r2 (raw file): Previously, shundroid wrote…
この下の assert までは、publisher.publish の前にしないと意味がない? Comments from Reviewable |
Review status: 0 of 33 files reviewed at latest revision, 11 unresolved discussions. test/dashboard.test.js, line 35 at r2 (raw file): Previously, shundroid wrote…
あー、そういうことか。しておきたいですね。 Comments from Reviewable |
Review status: 0 of 33 files reviewed at latest revision, 9 unresolved discussions. commandRunner.js, line 93 at r2 (raw file): Previously, dadaa wrote…
あーー、そうします Comments from Reviewable |
Review status: 0 of 33 files reviewed at latest revision, 9 unresolved discussions. virtualSpheroManager.js, line 16 at r2 (raw file): Previously, dadaa wrote…
あー、ここは 名前が決まっていなかった client の名前が決まった段階で呼ばれるので、 それ以外のところは、name で受け取るようにしました。 また、 #54 で、 Comments from Reviewable |
Review status: 0 of 33 files reviewed at latest revision, 9 unresolved discussions. commandRunner.js, line 67 at r3 (raw file): Previously, dadaa wrote…
Done. commandRunner.js, line 76 at r3 (raw file): Previously, dadaa wrote…
Done. orbController.js, line 126 at r3 (raw file): Previously, dadaa wrote…
直しました model/uuidModel.js, line 12 at r3 (raw file): Previously, dadaa wrote…
あー、ここ、 どうすればいいと思いますか・・? test/componentBase.test.js, line 27 at r2 (raw file): Previously, dadaa wrote…
あ、assert は publish の後でもおkだと思います test/dashboard.test.js, line 35 at r2 (raw file): Previously, dadaa wrote…
author で比較するように直しました。 Comments from Reviewable |
Review status: 0 of 33 files reviewed at latest revision, 9 unresolved discussions, some commit checks failed. test/commandRunner.test.js, line 7 at r3 (raw file): Previously, dadaa wrote…
Done. test/componentBase.test.js, line 27 at r2 (raw file): Previously, shundroid wrote…
Done. Comments from Reviewable |
Review status: 0 of 33 files reviewed at latest revision, 7 unresolved discussions, some commit checks failed. config.js, line 20 at r4 (raw file):
この collision のコンフィグだと、spark+ は当てはまらないけど、良いですか? Comments from Reviewable |
Review status: 0 of 33 files reviewed at latest revision, 8 unresolved discussions, some commit checks failed. controllerManager.js, line 88 at r4 (raw file):
Object.keys は新しい配列を作っちゃうので Comments from Reviewable |
Review status: 0 of 36 files reviewed at latest revision, 1 unresolved discussion. controllerManager.js, line 71 at r6 (raw file):
基本的に null チェックは Comments from Reviewable |
This change is